Skip to content

Commit 4cd088c

Browse files
committed
fixed a few bugs in the cap script
1 parent a95fddd commit 4cd088c

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

config/deploy.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
set :repository, "set your repository location here"
33

44
set :scm, :subversion
5-
set :stages, %w(test, production, ci)
6-
set :default_stage, 'test'
5+
set :stages, %w(draft production ci)
6+
set :default_stage, 'draft'
7+
set :deploy_via, :copy
8+
set :copy_strategy, :export
79
require 'capistrano/ext/multistage'
810

911
after :deploy, "init:set_permissions"

config/deploy/ci.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
role :app, "your app-server here" # This may be the same as your `Web` server
99
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
1010
role :db, "your slave db-server here"
11-
set :deploy_to 'var/lib/rails/%s' % application
11+
set :deploy_to, '/var/lib/rails/%s' % application
1212
set :user, 'root'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set :application, "App Name"
2-
set :rails_env, 'test'
2+
set :rails_env, 'draft'
33
ENV['RAILS_ENV'] = RAILS_ENV = rails_env
44

55
set :default_environment, {"RAILS_ENV" => rails_env}
@@ -8,5 +8,5 @@
88
role :app, "your app-server here" # This may be the same as your `Web` server
99
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
1010
role :db, "your slave db-server here"
11-
set :deploy_to 'var/lib/rails/%s' % application
11+
set :deploy_to, '/var/lib/rails/%s' % application
1212
set :user, 'root'

config/deploy/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
role :app, "your app-server here" # This may be the same as your `Web` server
99
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
1010
role :db, "your slave db-server here"
11-
set :deploy_to 'var/lib/rails/%s' % application
11+
set :deploy_to, '/var/lib/rails/%s' % application
1212
set :user, 'root'

0 commit comments

Comments
 (0)