diff --git a/config/deploy.rb b/config/deploy.rb index 3ca0af0..2d2dfcd 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,3 +1,6 @@ +set :stages, %w(en zh) +set :default_stage, 'zh' + require 'mina/multistage' require 'mina/bundler' require 'mina/rails' @@ -5,9 +8,6 @@ require 'mina/git' require 'mina/rvm' # for rvm support. (http://rvm.io) require 'mina/unicorn' -set :stages, %w(en zh) -set :default_stage, 'zh' - # Manually create these paths in shared/ (eg: shared/config/database.yml) in your server. # They will be linked in the 'deploy:link_shared_paths' step. set :shared_paths, ['config/mongoid.yml', 'config/application.yml', 'log', 'tmp', 'public/uploads', 'public/personal' ] diff --git a/config/unicorn/zh.rb b/config/unicorn/zh.rb index 75a4417..4309e61 100644 --- a/config/unicorn/zh.rb +++ b/config/unicorn/zh.rb @@ -24,5 +24,5 @@ after_fork do |server, worker| end before_exec do |server| - ENV["BUNDLE_GEMFILE"] = "#{app_path}/current/Gemfile" + ENV["BUNDLE_GEMFILE"] = "#{app_path}/Gemfile" end