пятница, 11 сентября 2015 г.

Laravel

recv() failed (104: Connection reset by peer) while reading response header from upstream

Try removing the comment from this line in /etc/php5/fpm/php.ini
opcache.enable=0

четверг, 10 сентября 2015 г.

Laravel 5 - Environment from nginx

nginx:
fastcgi_param APP_ENV "dev";


/bootstrap/app.php:
$env = $app->detectEnvironment(function(){
 return getenv("APP_ENV");
});
$app->loadEnvironmentFrom('.env.'.$env);