Laravel 4.1 Deployment - Production .env.php not being recognised

冷暖自知 提交于 2019-12-03 03:30:27

For all who want to know... to solve this issue, I just edited my httpd.conf file on the production server as follows:

SetEnv APP_ENV production

Now laravel knows that the app is in production.

If you are using nginx which I have now migrated my site to add the following where you pass scripts to the FCGI server in the active sites-available /etc/nginx/sites-available/{sitename}:

fastcgi_param APP_ENV production;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!