From 8770efb62af05ecbd2f3f28a5219a8ab780754b7 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 29 Jan 2012 13:56:53 -0800 Subject: [PATCH] staging capistrano --- Gemfile | 7 ++++--- Gemfile.lock | 4 ++-- config/deploy.rb | 10 +++++++++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 287fbe2..bc156a8 100644 --- a/Gemfile +++ b/Gemfile @@ -22,7 +22,6 @@ gem 'rails_config', '~> 0.2.4' # gem 'rails-settings-cached', :require => 'rails-settings' gem 'active-model-email-validator', '~> 1.0.2' gem 'mail_form', '~> 1.3.0' -gem 'capistrano', '~> 2.9.0' gem 'switch_user', '~> 0.6.0' # Gems used only for assets and not required @@ -33,14 +32,16 @@ group :assets do gem 'coffee-rails', "~> 3.2.1" gem 'uglifier', '>= 1.0.3' gem 'therubyracer' - end gem 'jquery-rails' gem 'dalli', '~> 1.1.3' # gem 'foreigner' ? -gem 'mongrel', '>= 1.2.0.pre2', :group => :development +group :development do + gem 'capistrano', '~> 2.9.0' + gem 'mongrel', '>= 1.2.0.pre2' +end group :test, :development do gem 'rspec-rails', '~> 2.8.1' diff --git a/Gemfile.lock b/Gemfile.lock index 84f07f1..60a6504 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -200,7 +200,7 @@ GEM multi_json (~> 1.0.3) simplecov-html (~> 0.5.3) simplecov-html (0.5.3) - spork (1.0.0rc0) + spork (1.0.0rc1) sprockets (2.1.2) hike (~> 1.2) rack (~> 1.0) @@ -218,7 +218,7 @@ GEM polyglot polyglot (>= 0.3.1) tzinfo (0.3.31) - uglifier (1.2.2) + uglifier (1.2.3) execjs (>= 0.3.0) multi_json (>= 1.0.2) userstamp_basic (0.1.0) diff --git a/config/deploy.rb b/config/deploy.rb index 9d427b4..a121749 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -2,7 +2,15 @@ require 'bundler/capistrano' default_run_options[:pty] = true set :application, 'entrydns' -set :domain, 'n0.entrydns.net' + +task :production do + set :domain, 'n0.entrydns.net' +end + +task :staging do + set :domain, 'staging.entrydns.net' +end + set :repository, "git@bitbucket.org:clyfe/entrydns.git" set :deploy_to, '/srv/www/apps/entrydns' set :user, 'clyfe'