Skip to content

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

@brucek

Description

@brucek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions