Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deploying On A Passenger / Mod_rails Host With Capistrano

DZone's Guide to

Deploying On A Passenger / Mod_rails Host With Capistrano

·
Free Resource
// add this to deploy.rb


namespace :mod_rails do
  desc <<-DESC
  Restart the application altering tmp/restart.txt for mod_rails.
  DESC
  task :restart, :roles => :app do
    run "touch  #{release_path}/tmp/restart.txt"
  end
end

namespace :deploy do
  %w(start restart).each { |name| task name, :roles => :app do mod_rails.restart end }
end
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}