add zh to default deploy destination, fix a bug
This commit is contained in:
parent
b94081f5a5
commit
740b6c0ece
|
@ -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' ]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue