Created
January 29, 2009 02:34
-
-
Save jmeridth/54330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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