Welcome Guest, Not a member yet? Register   Sign In
File .env not working

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

Please try rename env file to .env file and delete prefix # character .
SEO links REDACTED, per forum policy

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?

Try what ProfessionalCoder recommends. If you’ve already done that or it doesn’t work please post examples of your code.

If it works perfectly, the problem I had was that I was like env and not .env, thanks!

Theme © iAndrew 2016 - Forum software by © MyBB