Created
November 22, 2010 13:00
-
-
Save mdominiak/709943 to your computer and use it in GitHub Desktop.
capistrano script for deployment
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, "new-vegas" | |
set :repository, "[email protected]:mdominiak/new-vegas.git" | |
set :scm, :git | |
set :host, "newvegas.vault106.com" | |
set :user, "deploy" | |
set :use_sudo, false | |
set :deploy_to, "/home/deploy/new-vegas/production" | |
role :web, host # Your HTTP server, Apache/etc | |
role :app, host # This may be the same as your `Web` server | |
role :db, host, :primary => true # This is where Rails migrations will run | |
# role :db, "your slave db-server here" | |
after 'deploy:update_code' do | |
run "ln -s #{shared_path}/config/database.yml #{release_path}/config/database.yml" | |
end | |
namespace :deploy do | |
task :start do ; end | |
task :stop do ; end | |
task :restart, :roles => :app, :except => { :no_release => true } do | |
run "touch #{File.join(current_path,'tmp','restart.txt')}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment