ユーザ用ツール

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
mastodon [2022/11/08 21:33] – [Dockerを使わずに導入する] arakimastodon [2022/11/16 05:04] (現在) – [更新] araki
行 808: 行 808:
  
 <code> <code>
-$ RAILS_ENV=production bundle exec rails db:migrate+SKIP_POST_DEPLOYMENT_MIGRATION=true RAILS_ENV=production bundle exec rails db:migrate
 </code> </code>
  
行 814: 行 814:
 $ RAILS_ENV=production bundle exec rails assets:precompile $ RAILS_ENV=production bundle exec rails assets:precompile
 </code> </code>
 +
 +DBのマイグレーションは二段階に分けて行うようになっています。
 +プロセスを再起動する前の分と、再起動後の分とをSKIP_POST_DEPLOYMENT_MIGRATIONという環境変数で切り替えて行います。
  
 <code> <code>
行 819: 行 822:
 </code> </code>
  
 +<code>
 +$ RAILS_ENV=production bundle exec rails db:migrate
 +</code>
 ==== メモ  ==== ==== メモ  ====
  

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information