mattpolito / paratrooper

Library for creating tasks that deploy to Heroku
MIT License
107 stars 19 forks source link

Callbacks not running #45

Closed coderdave closed 10 years ago

coderdave commented 10 years ago

I'm trying to run some tasks on deployment using callbacks, but it's not working:

  deploy.add_callback(:before_app_restart) do
    system 'rake figaro:heroku[myapp]'
    system 'heroku run rake db:populate --remote staging'
  end

I have also tried "after_run_migrations".

What am I doing wrong?

mattpolito commented 10 years ago

What version of paratrooper are you using?

coderdave commented 10 years ago

1.4.2

mattpolito commented 10 years ago

The callback features are only available in master currently and will be available when the gem goes to 2.0. I'm currently not finished with all that I'd like to see in 2.0 for the release. Sorry for any confusion.

You can add

gem 'paratrooper', github: 'mattpolito/paratrooper'

to your Gemfile to have bundler pull from the repo and use the new callback features.

coderdave commented 10 years ago

Ok, thanks.