部署时无法 运行 迁移。 Laravel 5.2
Cant run a migration when deploying. Laravel 5.2
考虑特使的以下任务:
@task('deploy', ['on' => 'web'])
cd personal_site
php artisan down
git pull origin master
composer install
php artisan migrate
php artisan up
@endtask
php artisan migrate // Blows up
错误是:
[user@xxxx]: **************************************
* Application In Production! *
**************************************
[user@xxxx]: Command Cancelled!
[user@xxxx]: Application is now live.
此警告是一项安全措施,可防止 运行 在生产环境中发生意外迁移。如果您确定要在该环境中 运行 它们,则需要使用 --force 选项:
php artisan migrate --force
考虑特使的以下任务:
@task('deploy', ['on' => 'web'])
cd personal_site
php artisan down
git pull origin master
composer install
php artisan migrate
php artisan up
@endtask
php artisan migrate // Blows up
错误是:
[user@xxxx]: **************************************
* Application In Production! *
**************************************
[user@xxxx]: Command Cancelled!
[user@xxxx]: Application is now live.
此警告是一项安全措施,可防止 运行 在生产环境中发生意外迁移。如果您确定要在该环境中 运行 它们,则需要使用 --force 选项:
php artisan migrate --force