去掉发布脚本中的 public

This commit is contained in:
yafeilee 2014-04-01 23:31:10 +08:00
parent 927e7f49d5
commit 0f99e22e07
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ set :app_path, "#{deploy_to}/#{current_path}"
# 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', 'public', 'tmp', 'public/uploads' ]
set :shared_paths, ['config/mongoid.yml', 'config/application.yml', 'log', 'tmp', 'public/uploads' ]
set :user, 'ruby' # Username in the server to SSH to.
@ -21,7 +21,7 @@ task :environment do
end
task :setup => :environment do
['config', 'log', 'tmp', 'public', 'public/uploads'].each do |dir|
['config', 'log', 'tmp', 'public/uploads'].each do |dir|
queue! %[mkdir -p "#{deploy_to}/shared/#{dir}"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/#{dir}"]
end