Welcome Guest, Not a member yet? Register   Sign In
Working with environments
#2

I just found this part of the documentation https://codeigniter.com/user_guide/gener...ation.html where it's advised to .gitignore the .enf file. This is the advice I was looking for.

So I'll configure my setup as follows:

  • In App.php set baseURL to the production url (mysite.com)
  • leave the default .env file on the production server without any configuration, CI assumes produciton environment anyway
  • gitignore my local .env file
  • change the baseURL in my local .env to (localhost/mysite) + any other configuration
Makes it kind of hard to share local configurations with teammates but I guess it's better than before Big Grin

Any comments?
Tobias
Reply


Messages In This Thread
Working with environments - by tobias-stern - 11-07-2020, 08:58 AM
RE: Working with environments - by tobias-stern - 11-08-2020, 05:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB