Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cody Fauser
committed
Sep 18, 2009
1 parent
c261cbf
commit 5b6936a
Showing
3 changed files
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
require 'capistrano/version' | ||
#load 'deploy' if respond_to?(:namespace) # cap2 differentiator | ||
load 'config/deploy' | ||
|
||
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | ||
|
||
load 'deploy' | ||
load 'config/deploy' | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | ||
|
||
set :application, "opinion" | ||
set :repository, "git@github.com:Shopify/opinion.git" | ||
set :branch, "origin/master" | ||
set :scm, :git | ||
set :deploy_via, :fast_remote_cache | ||
set :announce_in, "https://bot@jadedpixel.com:hallo28@jadedpixel.campfirenow.com/room/100257" | ||
set :user, "deploy" | ||
set :rails_env, "production" | ||
|
||
role :app, "forums.cloud.shopify.com" | ||
role :web, "forums.cloud.shopify.com" | ||
role :db, "forums.cloud.shopify.com", :primary => true | ||
|
||
desc "Signal Passenger to restart the application" | ||
task :restart, :roles => :app do | ||
run "touch #{release_path}/tmp/restart.txt" | ||
namespace :gems do | ||
task :install, :roles => :app do | ||
run "cd #{release_path} && sudo rake RAILS_ENV=#{rails_env} gems:install" | ||
end | ||
end | ||
|
||
namespace :deploy do | ||
task :link_configs do | ||
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" | ||
end | ||
|
||
desc "Signal Passenger to restart the application" | ||
task :restart, :roles => :app do | ||
run "touch #{release_path}/tmp/restart.txt" | ||
end | ||
end | ||
|
||
after "deploy:update_code", "deploy::migrate" | ||
after "deploy:update_code", "deploy:link_configs", "gems:install", "deploy:migrate" |
This file contains 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