LoginSignup
8
7

More than 5 years have passed since last update.

Laravel 4 production 環境での php artisan migrate や db:seed の実行

Posted at

Laravel 4.2 の production 環境で、php artisan migratephp artisan db:seed を実行すると、本当に実行して良いか確認を求められる。

1. vagrant@jtsc__share (tmux).png

コンソールで手動で実行する場合は、y を入力すれば良いのだが、デプロイツールで自動実行している場合は、--force オプションを付けると強制的に実行できる。

$ php artisan migrate --env=production --force

Ansible でデプロイしようとして、php artisan migrate を実行したところで処理が止まるので、おかしいなあと思ったら、これでした。

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7