Permalink
Browse files

Adding capistrano support for deploying to pawpaw (VOV-81)

  • Loading branch information...
1 parent ec25f04 commit fa57aca97da94a54a5c2effa782f56127de27b6e @cjcolvar cjcolvar committed May 16, 2012
Showing with 96 additions and 25 deletions.
  1. +5 −0 Capfile
  2. +1 −0 Gemfile
  3. +47 −25 Gemfile.lock
  4. +43 −0 config/deploy.rb
View
@@ -0,0 +1,5 @@
+load 'deploy'
+# Uncomment if you are using Rails' asset pipeline
+ # load 'deploy/assets'
+Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy' # remove this line to skip loading any of the default tasks
View
@@ -40,6 +40,7 @@
# For testing. You will probably want to use these to run the tests you write for your hydra head
group :development, :test do
+ gem 'capistrano'
end # (leave this comment here to catch a stray line inserted by blacklight!)
group :test do
View
@@ -22,9 +22,9 @@ GIT
GIT
remote: git://github.com/projecthydra/hydra-head.git
- revision: 7572b1cece23b08e4a249e176f003620aabfd5ca
+ revision: 5ac2d2710173824a630e971a61dfe3223909b712
specs:
- hydra-head (4.0.0)
+ hydra-head (4.0.1)
RedCloth (= 4.2.9)
active-fedora (~> 4.0.0)
blacklight (~> 3.3.2)
@@ -113,6 +113,12 @@ GEM
activesupport (>= 2.0)
builder (3.0.0)
cancan (1.6.7)
+ capistrano (2.12.0)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.1.0)
capybara (1.1.2)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
@@ -129,7 +135,7 @@ GEM
coffee-script (2.2.0)
coffee-script-source
execjs
- coffee-script-source (1.3.1)
+ coffee-script-source (1.3.2)
compass (0.12.1)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
@@ -138,12 +144,11 @@ GEM
compass (~> 0.12.0)
compass-susy-plugin (0.9)
compass (>= 0.11.1)
- cucumber (1.1.9)
+ cucumber (1.2.0)
builder (>= 2.1.2)
- diff-lcs (>= 1.1.2)
- gherkin (~> 2.9.0)
+ diff-lcs (>= 1.1.3)
+ gherkin (~> 2.10.0)
json (>= 1.4.6)
- term-ansicolor (>= 1.0.6)
cucumber-rails (1.3.0)
capybara (>= 1.1.2)
cucumber (>= 1.1.8)
@@ -158,15 +163,16 @@ GEM
equivalent-xml (0.2.9)
nokogiri (>= 1.4.3)
erubis (2.7.0)
- execjs (1.3.0)
+ execjs (1.3.2)
multi_json (~> 1.0)
- fastercsv (1.5.4)
+ fastercsv (1.5.5)
ffi (1.0.11)
fssm (0.2.9)
- gherkin (2.9.3)
+ gherkin (2.10.0)
json (>= 1.4.6)
gyoku (0.4.4)
builder (>= 2.1.2)
+ highline (1.6.12)
hike (1.2.1)
httpi (0.9.7)
rack
@@ -181,11 +187,12 @@ GEM
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
- json (1.6.6)
+ json (1.7.3)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
+ libv8 (3.3.10.4)
libwebsocket (0.1.3)
addressable
logger (1.2.8)
@@ -196,9 +203,16 @@ GEM
marc (0.4.4)
mediashelf-loggable (0.4.9)
mime-types (1.18)
- multi_json (1.3.2)
+ multi_json (1.3.5)
multipart-post (1.1.2)
net-http-digest_auth (1.2)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.3.0)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
nokogiri (1.5.2)
nori (1.1.0)
om (1.6.0)
@@ -242,19 +256,19 @@ GEM
builder (>= 2.1.2)
rsolr-ext (1.0.3)
rsolr (>= 1.0.2)
- rspec (2.9.0)
- rspec-core (~> 2.9.0)
- rspec-expectations (~> 2.9.0)
- rspec-mocks (~> 2.9.0)
- rspec-core (2.9.0)
- rspec-expectations (2.9.1)
+ rspec (2.10.0)
+ rspec-core (~> 2.10.0)
+ rspec-expectations (~> 2.10.0)
+ rspec-mocks (~> 2.10.0)
+ rspec-core (2.10.0)
+ rspec-expectations (2.10.0)
diff-lcs (~> 1.1.3)
- rspec-mocks (2.9.0)
- rspec-rails (2.9.0)
+ rspec-mocks (2.10.1)
+ rspec-rails (2.10.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
- rspec (~> 2.9.0)
+ rspec (~> 2.10.0)
rubydora (0.5.8)
activemodel
activesupport
@@ -266,7 +280,7 @@ GEM
rubyzip (0.9.8)
sanitize (2.0.3)
nokogiri (>= 1.4.4, < 1.6)
- sass (3.1.16)
+ sass (3.1.18)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
@@ -285,20 +299,21 @@ GEM
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
- solrizer (1.2.0)
+ solrizer (1.2.1)
daemons
mediashelf-loggable (~> 0.4.7)
nokogiri
om (>= 1.5.0)
stomp
xml-simple
- sprockets (2.1.2)
+ sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.6)
stomp (1.2.2)
- term-ansicolor (1.0.7)
+ therubyracer (0.10.1)
+ libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
@@ -321,20 +336,27 @@ PLATFORMS
ruby
DEPENDENCIES
+ activerecord-jdbcsqlite3-adapter
blacklight (~> 3.3.2)
+ capistrano
coffee-rails (~> 3.2.1)
compass-rails (~> 1.0.0)
compass-susy-plugin (~> 0.9.0)
cucumber-rails (>= 1.2.0)
devise
+ execjs
felixwrapper!
hydra-head!
+ jdbc-sqlite3
jettywrapper
jquery-rails
+ jruby-openssl
rails (~> 3.2.3)
red5wrapper!
rspec-rails (>= 2.9.0)
rubyhorn!
sass-rails (~> 3.2.3)
sqlite3
+ therubyracer
+ therubyrhino
uglifier (>= 1.0.3)
View
@@ -0,0 +1,43 @@
+set :application, "hydrant"
+set :repository, "git://github.com/variations-on-video/hydrant.git"
+
+set :scm, :git
+# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
+
+role :web, "pawpaw.dlib.indiana.edu" # Your HTTP server, Apache/etc
+role :app, "pawpaw.dlib.indiana.edu" # This may be the same as your `Web` server
+role :db, "pawpaw.dlib.indiana.edu", :primary => true # This is where Rails migrations will run
+
+set :deploy_to, "/srv/rails/hydrant-test"
+set :user, "vov"
+set :use_sudo, false
+
+# if you want to clean up old releases on each deploy uncomment this:
+# after "deploy:restart", "deploy:cleanup"
+
+# if you're still using the script/reaper helper you will need
+# these http://github.com/rails/irs_process_scripts
+
+# If you are using Passenger mod_rails uncomment this:
+# namespace :deploy do
+# task :start do ; end
+# task :stop do ; end
+# task :restart, :roles => :app, :except => { :no_release => true } do
+# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
+# end
+# end
+
+namespace :deploy do
+ task :start, :roles => :app do
+ run "touch #{current_release}/tmp/restart.txt"
+ end
+
+ task :stop, :roles => :app do
+ # Do nothing.
+ end
+
+ desc "Restart Application"
+ task :restart, :roles => :app do
+ run "touch #{current_release}/tmp/restart.txt"
+ end
+end

0 comments on commit fa57aca

Please sign in to comment.