(02-21-2021, 06:06 AM)myo Wrote: It means PRODUCTION environment option in .env file is useless?
So it means I have to keep 2 copies, 1 for local development & 1 for production?
Cant I just comment the relevant lines in composerĀ autoload file in production?
The .env file only affects the application.
You can run composer with the keys listed above on the production server.
No second copy is required.
If you mean composer.json, then it doesn't support comments.
If we are talking about files generated by the composer, the files will be recreated upon update / add / remove.