CodeIgniter Forums
.env file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: .env file (/showthread.php?tid=75607)



.env file - rubens_gomes - 02-25-2020

Where exactly is the ".env" file supposed to be located?  I tried public/, vendor/codeigniter4/framework/, and the project root, and cannot see any difference in the setting:

CI_ENVIRONMENT = development


RE: .env file - dave friend - 02-25-2020

At the root of your project at the same level as app and system.


RE: .env file - zahhar - 02-26-2020

Just 2 cents:
1. Ensure that you really have a dot in the name, e.g. it is .env and not just an env (as it appears by default in git repo)
2. Ensure that line CI_ENVIRONMENT = development is really uncommented (it appears commented by default, remove sharp char)