简体   繁体   English

为什么我的laravel应用程序始终处于生产氛围中

[英]Why my laravel App is always in production mood

When I try to run command like - 当我尝试运行命令时 -

php artisan db:seed

it is saying - 它说 -

**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:

My .env file says - 我的.env文件说 -

....
APP_ENV=local
APP_KEY=...
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
....

my app.php file says 我的app.php文件说

...
'env' => env('APP_ENV', 'local'),
...

My laravel version is 5.3. 我的laravel版本是5.3。

What setting should I do to run the application in development mode? 在开发模式下运行应用程序应该采取什么设置?

Your settings are correct. 您的设置是正确的。 Try to clear config cache: 尝试清除配置缓存:

php artisan config:cache

Please run the command on the terminal or cmd 请在终端或cmd上运行命令

php artisan up

it will come you out of the maintenance mode 它会让你退出维护模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM