LoginSignup
3

More than 5 years have passed since last update.

[Heroku] Procfile で deploy時の実行コマンドを指定 [Release]

Posted at

知らぬ間にRelease Phase(現時点ではβ)機能が追加されてた...(2ヶ月前)

Procfile 内に "relaese:" で始まる行を書いて、その後にコマンドを書いておくと、deploy するたびに実行してくれます。db の migrateとかのし忘れがないようにできて便利ですね。

ruby だったら、こんな感じにしておけばいい感じ

Procfile
release: rake db:migrate

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
3