Skip to content

Commit

Permalink
Set up Capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
dean authored and deanrad committed Jul 10, 2010
1 parent 6bc5318 commit 6febadf
Show file tree
Hide file tree
Showing 2 changed files with 39 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'
36 changes: 36 additions & 0 deletions config/deploy.rb
@@ -0,0 +1,36 @@
set :application, "Chess On Rails"

#############################################################
# SCM (Git)
#############################################################

default_run_options[:pty] = true
set :repository, "git@github.com:chicagogrooves/chess_on_rails.git"
set :scm, "git"
set :branch, "master"
ssh_options[:forward_agent] = true
set :deploy_via, :remote_cache
set :deploy_to, "/home/chicagogrooves/facebook_root/"

#############################################################
# Servers
#############################################################

#production
set :domain, 'chicagogrooves.com'
role :app, domain
role :web, domain
role :db, domain, :primary => true
set :user, 'chicagogrooves'

#############################################################
# Passenger
#############################################################

namespace :deploy do
desc "Restarting mod_rails with restart.txt"
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end
end

0 comments on commit 6febadf

Please sign in to comment.