Skip to content

Instantly share code, notes, and snippets.

@satomixx
Created November 27, 2014 07:30
Show Gist options
  • Save satomixx/ac6e99cb95ef055049fb to your computer and use it in GitHub Desktop.
Save satomixx/ac6e99cb95ef055049fb to your computer and use it in GitHub Desktop.
[Rails 4.x] Rails アプリをWerckerを通してHerokuに上げる際に -bash: heroku: command not found とかなった場合の対応。 ref: http://qiita.com/tsumekoara/items/62cfa777b108acb5659f
$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment