Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil, Tasks and Environments
Hi everyone I've set up the environment to production via the .htaccess. However, I noticed that when I run a task thru OIL, it wouldn't recognize my environment. Only way to do it is to change the environment on bootstrap.php, but of course, that will be a hassle and defeats the purpose of our config files. Any work around on this one? Thanks for the help! Arnold
You can start oil using '--env production' and run it of the production environment.
Thanks, WanWizard. Will try.
Harro, is the recommended way to do this now 'FUEL_ENV=production php oil refine sometask'?
Because when you use a commandline argument, some environment specific things (like for example config) will be already loaded before Oil can check them and change the environment.
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion