Skip to content

Instantly share code, notes, and snippets.

@maletor
Created April 12, 2010 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maletor/363670 to your computer and use it in GitHub Desktop.
Save maletor/363670 to your computer and use it in GitHub Desktop.
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