0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Herokuでpromote先にビルドパックを事前インストールしておく必要がある

Last updated at Posted at 2025-05-14

Herokuで開発環境からステージング/本番にpromoteする構成の場合、
ビルドパックがpromote先にインストールされていないとpromote後にアプリが正常に動かない

以下、Nodeアプリの例

heroku ps:scale web=0 -a <アプリ名> 
heroku git:clone -a <アプリ名> 
cd <アプリ名>
echo {} > package.json
git add package.json
git commit -m "add empty package.json for run buildpack"
git push heroku master

その後promoteしたら

heroku ps:scale web=1 -a <アプリ名>
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?