Revision: 7206
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2008 08:36 by bcalloway
Initial Code
############################
# Original DreamHost deploy.rb recipe
#
set :user, 'dhuser' # Your dreamhost account's username
set :domain, 'servername.dreamhost.com' # Dreamhost servername where your account is located
set :project, 'myapp_name_from_repository' # Your application as its called in the repository
set :application, 'myapp.mydomain.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, 'YOUR_SVN_USERNAME'
set :scm_password, 'YOUR_SVN_PASSWORD'
set :repository, "http://svn.my_subversion_domain/#{project}/trunk/"
# deploy config
set :deploy_to, applicationdir
set :deploy_via, :export
# roles (servers)
role :app, domain
role :web, domain
role :db, domain, :primary => true
namespace :deploy do
[:start, :stop, :restart, :finalize_update, :migrate, :migrations, :cold].each do |t|
desc "#{t} task is a no-op with mod_rails"
task t, :roles => :app do ; end
end
end
# 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
############################
#for use with shared files (e.g. config files)
after "deploy:update_code" do
run "ln -s #{shared_path}/sharedfile.xml #{release_path}/path/to/shared-file/dir"
end
Initial URL
Initial Description
This is a capistrano deploy recipe for use with hosting on Dreamhost, as per the Dreamhost support wiki
Initial Title
Dreamhost Capistrano deploy recipe
Initial Tags
Initial Language
Ruby