Created
April 12, 2010 15:16
-
-
Save maletor/363670 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 :application, "ellisberner.com" | |
role :app, application | |
role :web, application | |
role :db, application, :primary => true | |
set :user, "www-data" | |
set :port, 2222 | |
set :deploy_to, "/var/www/#{application}" | |
set :repository, "git://github.com/maletor/ellisberner.git" | |
set :scm, "git" | |
namespace :deploy do | |
desc "Tell unicorn to restart the app" | |
task :restart do | |
run "/etc/init.d/unicorn restart" | |
end | |
desc "Symlink YAML" | |
task :symlink_yaml do | |
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" | |
end | |
end | |
after 'deploy:update_code', 'deploy:symlink_yaml' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment