Skip to content

Instantly share code, notes, and snippets.

@baldowl
Created June 9, 2010 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baldowl/431137 to your computer and use it in GitHub Desktop.
Save baldowl/431137 to your computer and use it in GitHub Desktop.
Keep-alive vs. Mongrel; saved by Thin
set :thin_conf, "#{current_path}/config/thin_cluster.yml"
namespace :deploy do
%w(star stop restar).each do |action|
task action.to_sym, :roles => :app do
run "thin -c #{deploy_to}/current -C #{thin_conf} #{action}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment