Skip to content

Commit

Permalink
capified
Browse files Browse the repository at this point in the history
Signed-off-by: rick <technoweenie@gmail.com>
  • Loading branch information
Kalin Harvey authored and technoweenie committed Apr 20, 2009
1 parent 95eeec5 commit b268609
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Capfile
@@ -0,0 +1,3 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
31 changes: 31 additions & 0 deletions config/deploy.rb
@@ -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

0 comments on commit b268609

Please sign in to comment.