• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File .env not working

#1
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
Reply

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

#3
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?
Reply

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.