![]() |
File .env not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: File .env not working (/showthread.php?tid=74898) |
File .env not working - acy29 - 11-22-2019 Hello, I have tried changing the configuration of the CodeIgniter .env file and the changes made there are not taken into account by the framework; I configure database, environments etc. Take only the settings made in the configuration files: App.php, Database.php etc RE: File .env not working - ProfessionalCoder - 11-23-2019 Please try rename env file to .env file and delete prefix # character . RE: File .env not working - acy29 - 11-23-2019 Hello; thanks for yout help! the name is correct (.env) I update the proyect: λ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 1 update, 0 removals - Updating sebastian/environment (4.2.2 => 4.2.3): Downloading (100%) Writing lock file Generating autoload files Generated autoload files containing 625 classes and still not working I try to uncomment (I remove the #) I set up an environment and it doesn't take it, I misconfigured the database and it doesn't take it It simply does not recognize the file .env Do i have some additional configuration to take the .env file? RE: File .env not working - MGatner - 11-23-2019 Try what ProfessionalCoder recommends. If you’ve already done that or it doesn’t work please post examples of your code. RE: File .env not working - acy29 - 11-23-2019 If it works perfectly, the problem I had was that I was like env and not .env, thanks! |