Created
October 19, 2008 22:02
-
-
Save bscofield/17954 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, "forever_home" | |
set :repository, "git@github.com:railsrumble/leaf-on-the-wind.git" | |
# If you aren't deploying to /u/apps/#{application} on the target | |
# servers (which is the default), you can specify the actual location | |
# via the :deploy_to variable: | |
set :deploy_to, "/var/www/#{application}" | |
# If you aren't using Subversion to manage your source code, specify | |
# your SCM below: | |
set :scm, :git | |
set :branch, "railsrumble" | |
set :user, 'deploy' | |
set :rails_env, "production" | |
set :scm_verbose, true | |
role :app, "66.246.75.29" | |
role :web, "66.246.75.29" | |
role :db, "66.246.75.29", :primary => true | |
ssh_options[:keys] = %w(/Users/bscofield/.ssh/id_rsa) | |
namespace :deploy do | |
task :restart do | |
run "touch #{current_path}/tmp/restart.txt" | |
end | |
end | |
after "deploy:update_code", "app:symlink" | |
namespace :app do | |
desc "Make symlinks" | |
task :symlink do | |
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment