Permalink
Browse files

Deploy config

  • Loading branch information...
1 parent fbbe266 commit 8d6e80a519359cff1cad90f11519559e277798df @proglottis committed Oct 28, 2012
Showing with 42 additions and 1 deletion.
  1. +4 −0 Capfile
  2. +1 −1 Gemfile
  3. +15 −0 Gemfile.lock
  4. +22 −0 config/deploy.rb
View
@@ -0,0 +1,4 @@
+load 'deploy'
+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
@@ -32,7 +32,7 @@ gem 'jquery-rails'
# gem 'unicorn'
# Deploy with Capistrano
-# gem 'capistrano'
+gem 'capistrano'
# To use debugger
gem 'debugger'
View
@@ -32,6 +32,12 @@ GEM
addressable (2.3.2)
arel (3.0.2)
builder (3.0.3)
+ 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)
@@ -71,6 +77,7 @@ GEM
guard-minitest (0.5.0)
guard (>= 0.4)
hashie (1.2.0)
+ highline (1.6.13)
hike (1.2.1)
httpauth (0.2.0)
i18n (0.6.1)
@@ -109,6 +116,13 @@ GEM
minitest-rails (~> 0.1)
multi_json (1.3.6)
multipart-post (1.1.5)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.5.2)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
nokogiri (1.5.5)
oauth2 (0.8.0)
faraday (~> 0.8)
@@ -196,6 +210,7 @@ PLATFORMS
DEPENDENCIES
acts_as_list
+ capistrano
coffee-rails (~> 3.2.1)
debugger
factory_girl
View
@@ -0,0 +1,22 @@
+require "bundler/capistrano"
+
+set :application, "ladder"
+set :repository, "git@github.com:proglottis/ladder.git"
+
+set :scm, :git
+set :branch, "master"
+
+set :deploy_to, "/srv/ladder"
+
+server "ladder.nothing.co.nz", :app, :web, :db, :primary => true
+
+default_run_options[:pty] = true
+ssh_options[:forward_agent] = true
+
+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

0 comments on commit 8d6e80a

Please sign in to comment.