before("deploy:restart") { set :use_sudo, false } after "deploy:start", :restart_web_server set :user, "my_user_name" set :application, "myapp.com" set :domain, "myapp.com" set :joyent_primary_domain, "prospect.joyent.us" set :repository, "ssh://my_user_name@prospect.joyent.us/users/home/my_user_name/git/myapp.git" set :scm, :git set :deploy_to, "/users/home/#{user}/domains/#{domain}/web" set :use_sudo, false role :app, "#{joyent_primary_domain}" role :web, "#{joyent_primary_domain}" role :db, "#{joyent_primary_domain}", :primary => true default_run_options[:pty] = true namespace :deploy do desc "Restart Mongrel by killing" task :restart, :roles => :app do run "pkill mongrel" end end
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
My capistrano recipe for deploying on shared accelerator from a git repo (See related posts)
Comments on this post
You need to create an account or log in to post comments to this site.
Related Posts
» Capistrano for TXD Containers in rails capistrano container
» SMF Manifest for Mongrels on... in rails container mongrel smf
» Apache + mongrel_cluster Vir... in apache mongrel mongrel_cluster httpd
» make mongrel cleanup stale p... in rails mongrel
» mongrel_cluster monit script in mongrel mongrel_cluster monit monitoring
» stop mongrel daemon in mongrel
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails