Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

capifying, first attempt

  • Loading branch information...
commit eaae5f0f94fddc931c787578b3e3d011f05eeff6 1 parent a0d54ec
Matthew Kocher mkocher authored
Showing with 35 additions and 0 deletions.
  1. +3 −0  coreapp/Capfile
  2. +32 −0 coreapp/config/deploy.rb
3  coreapp/Capfile
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'
32 coreapp/config/deploy.rb
View
@@ -0,0 +1,32 @@
+set :application, "outspokes"
+
+set :scm, :git
+set :repository, "git@github.com:avk/feedback.git"
+set :branch, "master"
+set :deploy_via, :remote_cache
+
+# If you aren't deploying to /u/apps/#{application} on the target
+# servers (which is the default), you can specify the actual location
+# via the :deploy_to variable:
+set :deploy_to, "/var/www/#{application}"
+
+# If you aren't using Subversion to manage your source code, specify
+# your SCM below:
+# set :scm, :subversion
+
+role :app, "outspokes.com"
+role :web, "outspokes.com"
+role :db, "outspokes.com", :primary => true
+
+## from http://www.zorched.net/2008/06/17/capistrano-deploy-with-git-and-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
+
+ [:start, :stop].each do |t|
+ desc "#{t} task is a no-op with mod_rails"
+ task t, :roles => :app do ; end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.