paratrooper
paratrooper copied to clipboard
config.add_remote_task (from docs) does not work
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.
What version are you using?
3.0.0.beta3
error is: NoMethodError: undefined method `add_remote_task' for #Paratrooper::Configuration:0x007fe202afa3c0