Skip to content

Instantly share code, notes, and snippets.

@markprovan
Created October 18, 2011 09:12
Show Gist options
  • Select an option

  • Save markprovan/1295010 to your computer and use it in GitHub Desktop.

Select an option

Save markprovan/1295010 to your computer and use it in GitHub Desktop.
Capistrano Recipe
set :application, "mealcloud"
set :scm, :git
set :user, "root"
set :password, "password_is_here"
set :repository, "ssh://root@31.222.158.203/git/mealcloud.git"
set :branch, "release/test_server"
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "31.222.158.20" # Your HTTP server, Apache/etc
set :rails_env, :production
set :deploy_to, "/var/www/apps/#{application}"
# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment