add zh to default deploy destination, fix a bug

This commit is contained in:
yafeilee 2015-04-08 09:20:44 +08:00
parent b94081f5a5
commit 740b6c0ece
2 changed files with 4 additions and 4 deletions

View File

@ -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' ]

View File

@ -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