• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTACCESS setEnv doesn't work for all servers

#11
(05-25-2017, 10:24 PM)kilishan Wrote: I just modified the framework to allow the value to be set in a .env file. I also changed the name to CI_ENVIRONMENT for more clarity.

What is the .env file?
I see an env.example file in the repository - but I don't see anything in the CI4 install about how to set that up or anything about it.
Reply

#12
Oh, you're right, I forgot to add docs about that part of it there. I'll do that. In the meantime, these docs describe the .env file and its usage. For now:

1. create a new file, .env, in the root directory, right next to the application and system directories.
2. Add the following line:

Code:
CI_ENVIRONMENT = develop

That's it.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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