/ Published in: Ruby
This is a capistrano deploy recipe for use with hosting on Dreamhost, as per the Dreamhost support wiki
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
############################ # 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