Skip to content

Instantly share code, notes, and snippets.

@aussiegeek
Forked from sarahhodne/deploy.rb
Created September 13, 2008 10:02
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 aussiegeek/10585 to your computer and use it in GitHub Desktop.
Save aussiegeek/10585 to your computer and use it in GitHub Desktop.
set :user, 'nordicmineral' # Your dreamhost account's username
set :domain, 'gambino.dreamhost.com' # Dreamhost servername where your account is located
set :project, 'nordicmineral' # Your application as its called in the repository
set :application, 'nordicmineral.com' # Your app's location (domain or sub-domain name as setup in panel)
set :applicationdir, "/home/#{user}/#{application}" # The standard Dreamhost setup
# version control config
set :scm_username, 'nordicmineral'
set :scm_password, '***********'
set :repository, "svn+ssh://#{scm_username}@nordicmineral.com/home/nordicmineral/svn/#{project}"
# roles (servers)
role :web, domain
role :app, domain
role :db, domain, :primary => true
# deploy config
set :deploy_to, applicationdir
set :deploy_via, :export
# additional settings
default_run_options[:pty] = true # Forgo errors when deploying from windows
#ssh_options[:keys] = %w(/Path/To/id_rsa) # If you are using ssh_keys
set :chmod755, "app config db lib public vendor script script/* public/disp*"
set :use_sudo, false
#############################################################
# Passenger
#############################################################
namespace :deploy do
desc "Restart Application"
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
task :start, :roles => :app do
end
task :stop, :roles => :app do
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment