Make the heroku
command return the exit status from your one-off dyno process.
$ heroku plugins:install https://github.com/glenngillen/heroku-exit-status.git
Just use heroku run
like you normally would
$ heroku run ls
Running `ls` attached to terminal... up, run.1
app bin config config.ru db doc Gemfile Gemfile.lock lib log Procfile public Rakefile script server test tmp vendor
$ echo $?
0
$ heroku run no-such-command
Running `no-such-command` attached to terminal... up, run.1
bash: no-such-command: command not found
$ echo $?
127
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request