Skip to content
coreyward edited this page May 22, 2012 · 2 revisions

Here's a snippet for enabling/disabling maintenance mode

task :before_deploy do
  Rake::Task['heroku:maintenance_on'].invoke
end

task :after_deploy do
  Rake::Task['heroku:maintenance_off'].invoke
end
Clone this wiki locally