Permalink
Browse files

Set up Capistrano

  • Loading branch information...
1 parent 6bc5318 commit 6febadff474dd376a8d4ac3ef91cf3a8624b3421 dean committed with Jul 26, 2009
Showing with 39 additions and 0 deletions.
  1. +3 −0 Capfile
  2. +36 −0 config/deploy.rb
View
@@ -0,0 +1,3 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy'
View
@@ -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.