6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Rails 4.x] Rails アプリをWerckerを通してHerokuに上げる際に -bash: heroku: command not found とかなった場合の対応。

Posted at

基本的には(2014/11/27)

この記事のとおりにやれば問題ないのですが、一箇所だけ注意。

現行最新版ではheroku-toolbeltが入っていないらしい。

のでこんなエラーが。

$ heroku run:detached rake db:migrate --app $APP_NAME
-bash: heroku: command not found

追記

解決策は公式にのっていて、こんな感じ。

deploy:
    steps:
        - heroku-deploy:
            install-toolbelt: true #ここ!
        - script:
            name: Migrate DB
            code: heroku run rake db:migrate --app $APP_NAME
        - script:
            name: Update assets
            code: heroku run rake add_static_assets --app $APP_NAME

Screen Shot 2014-11-27 at 16.29.19.png

以上でした。

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?