Skip to content

Instantly share code, notes, and snippets.

@denmarkin
Forked from mdominiak/deploy.rb
Created February 9, 2011 20:07
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 denmarkin/819169 to your computer and use it in GitHub Desktop.
Save denmarkin/819169 to your computer and use it in GitHub Desktop.
simple deploy recipe for passenger
set :application, "new-vegas"
set :repository, "git@github.com: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
role :app, host
role :db, host, :primary => true
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
@denmarkin
Copy link
Author

Clean and simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment