From 0f99e22e07b948c5c212a0e4da5eb8c7e114fb4c Mon Sep 17 00:00:00 2001 From: yafeilee Date: Tue, 1 Apr 2014 23:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8F=91=E5=B8=83=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E7=9A=84=20public?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/deploy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index a298306..addbbd0 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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