-
-
Save aussiegeek/10585 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 :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