deploy後自動migrate

步驟

編輯 config/deploy.rb

  1. role :db, host_or_domain, primary: true <= 這個要設定
  2. set :user, username <= 這個也要設定
  3. 隨便找個位置,插入 after "deploy", "deploy:migrate"

Comments

comments powered by Disqus