Created
November 22, 2010 13:00
Revisions
-
mdominiak renamed this gist
Nov 22, 2010 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,10 +7,9 @@ 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" -
mdominiak created this gist
Nov 22, 2010 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ 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