Welcome Guest, Not a member yet? Register   Sign In
Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1
#5

(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.
Reply


Messages In This Thread
RE: Unnecessary Files Loaded in Production Environment - Codeigniter 4.1.1 - by iRedds - 02-21-2021, 03:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB