Permalink
Browse files

Added deploy config

  • Loading branch information...
1 parent 5a50785 commit ba39d9ec65622fe09b1d619f35ff4a358a037cd9 @BDQ BDQ committed Sep 27, 2011
Showing with 119 additions and 2 deletions.
  1. +0 −1 .gitignore
  2. +8 −0 Capfile
  3. +3 −1 Gemfile
  4. +74 −0 Gemfile.lock
  5. +34 −0 config/deploy.rb
View
@@ -3,7 +3,6 @@ output
staging
.DS_Store
roadmap.txt
-Gemfile.lock
*.swp
.rvmrc
bin
View
@@ -0,0 +1,8 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+
+# 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
@@ -1,3 +1,5 @@
-source :gemcutter
+source :rubygems
gem 'guides', :git => 'git@github.com:schof/guides.git'
+
+gem 'capistrano'
View
@@ -0,0 +1,74 @@
+GIT
+ remote: git@github.com:schof/guides.git
+ revision: 9ba5a4f92e02b2c24d2186b186a213cc28262443
+ specs:
+ guides (0.6.10)
+ RedCloth (~> 4.2.7)
+ actionpack (~> 3.0.0)
+ activesupport (~> 3.0.0)
+ maruku (~> 0.6.0)
+ rack (~> 1.2.1)
+ thin (~> 1.2.7)
+ thor (~> 0.14.6)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ RedCloth (4.2.8)
+ abstract (1.0.0)
+ actionpack (3.0.10)
+ activemodel (= 3.0.10)
+ activesupport (= 3.0.10)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.14)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.10)
+ activesupport (= 3.0.10)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activesupport (3.0.10)
+ builder (2.1.2)
+ capistrano (2.8.0)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.1.0)
+ daemons (1.1.4)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ eventmachine (0.12.10)
+ highline (1.6.2)
+ i18n (0.5.0)
+ maruku (0.6.0)
+ syntax (>= 1.0.0)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.2.1)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
+ rack (1.2.4)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ syntax (1.0.0)
+ thin (1.2.11)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.14.6)
+ tzinfo (0.3.29)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ capistrano
+ guides!
View
@@ -0,0 +1,34 @@
+$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
+require "rvm/capistrano" # Load RVM's capistrano plugin.
+require "bundler/capistrano"
+
+set :application, "guides"
+set :user, 'spree'
+set :group, 'www-data'
+set :domain, 'spree.spreeworks.com'
+
+set :rvm_ruby_string, 'ruby-1.9.2-p290'
+
+set :scm, :git
+
+role :web, domain
+role :app, domain
+role :db, domain, :primary => true
+
+set :repository, "git://github.com/spree/spree-guides.git"
+set :branch, "refactor"
+set :deploy_to, "/data/#{application}"
+set :deploy_via, :remote_cache
+set :use_sudo, false
+
+default_run_options[:pty] = true
+set :ssh_options, { :forward_agent => true }
+
+namespace :deploy do
+ desc "Builds static html for guides"
+ task :build_guides do
+ run "cd #{release_path} && bundle exec guides build --clean"
+ end
+end
+
+after 'deploy:update_code', 'deploy:build_guides'

0 comments on commit ba39d9e

Please sign in to comment.