Laravel .env 多环境配置文件

修改 Nginx 配置文件设置 APP_ENV:

1
2
3
4
5
6
7
location ~ \.php$ {
fastcgi_pass 192.168.42.6:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param APP_ENV production;
}

对应laravel目录下.env.production