Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.add_remote_task (from docs) does not work #83

Open
brucek opened this issue Jun 23, 2016 · 2 comments
Open

config.add_remote_task (from docs) does not work #83

brucek opened this issue Jun 23, 2016 · 2 comments

Comments

@brucek
Copy link

brucek commented Jun 23, 2016

Just a note that while the README says you can do

# lib/tasks/deploy.rake

namespace :deploy do
  desc 'Deploy app in production environment'
  task :production do
    Paratrooper.deploy("amazing-production-app") do |config|
      config.maintenance = true
      config.add_callback(:after_teardown) do |output|
        output.display("Running some task that needs to run")
        config.add_remote_task("rake some:task:to:run")
      end
    end
  end
end

that gives an error. I had to do

config.heroku.run_task("rake some:task:to:run")

to get it working. Might just update the docs (or let us know how it should actually work). Thanks.

@mattpolito
Copy link
Owner

What version are you using?

@brucek
Copy link
Author

brucek commented Jul 15, 2016

3.0.0.beta3

error is:
NoMethodError: undefined method `add_remote_task' for #Paratrooper::Configuration:0x007fe202afa3c0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants