Skip to content

Instantly share code, notes, and snippets.

@jmeridth
Created January 29, 2009 02:34
Show Gist options
  • Save jmeridth/54330 to your computer and use it in GitHub Desktop.
Save jmeridth/54330 to your computer and use it in GitHub Desktop.
set :application, "mydomain.com"
set :domain, "mydomain.com"
set :repository, "TBD"
set :deploy_to, "/home/myuser/public_html/#{domain}"
set :scm, :git
set :deploy_via, :copy
#ssh_options[:keys] = "~#{ENV['USER']}/.ssh/id_rsa"
ssh_options[:port] = 314
#ssh_option[:paranoid] = false
set :user, 'myuser'
#set :user_sudo, false
role :app, "#{domain}"
role :web, "#{domain}"
role :db, "#{domain}", :primary => true
namespace :passenger do
desc "Restart Application"
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
end
namespace :deploy do
desc "Start/Restart the Passenger System"
%w(start restart).each { |name| task name, :roles => :app do passenger.restart end }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment