forked from technoweenie/seinfeld
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: rick <technoweenie@gmail.com>
- Loading branch information
1 parent
95eeec5
commit b268609
Showing
2 changed files
with
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | ||
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | ||
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
default_run_options[:pty] = true | ||
|
||
# be sure to change these | ||
set :user, 'agilities' | ||
set :domain, 'discipline.es' | ||
set :application, 'seinfeld' | ||
|
||
# the rest should be good | ||
set :repository, "git@github.com:krrh/#{application}.git" | ||
set :deploy_to, "/home/#{user}/#{domain}" | ||
set :deploy_via, :remote_cache | ||
set :scm, 'git' | ||
set :branch, 'master' | ||
set :git_shallow_clone, 1 | ||
set :scm_verbose, true | ||
set :use_sudo, false | ||
|
||
server domain, :app, :web | ||
role :db, domain, :primary => true | ||
|
||
# desc "Link in the production database.yml and link to http credentials" | ||
# task :after_update_code do | ||
# run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml" | ||
# run "ln -nfs #{deploy_to}/#{shared_dir}/lib/http_auth.rb #{release_path}/lib/http_auth.rb" | ||
# end | ||
|
||
namespace :deploy do | ||
task :restart do | ||
run "touch #{current_path}/tmp/restart.txt" | ||
end | ||
end |