uploads共享文件夹
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -42,6 +42,7 @@ namespace :deploy do | ... | @@ -42,6 +42,7 @@ namespace :deploy do |
42 | 42 | ||
43 | task :mkdir_shared do | 43 | task :mkdir_shared do |
44 | on roles(:web) do | 44 | on roles(:web) do |
45 | execute "mkdir -p #{shared_path}/uploads" | ||
45 | execute "mkdir -p #{shared_path}/log" | 46 | execute "mkdir -p #{shared_path}/log" |
46 | execute "mkdir -p #{shared_path}/assets" | 47 | execute "mkdir -p #{shared_path}/assets" |
47 | execute "mkdir -p #{shared_path}/tmp/pids" | 48 | execute "mkdir -p #{shared_path}/tmp/pids" |
... | @@ -54,6 +55,7 @@ namespace :deploy do | ... | @@ -54,6 +55,7 @@ namespace :deploy do |
54 | execute "ln -sf #{shared_path}/log #{current_path}/log" | 55 | execute "ln -sf #{shared_path}/log #{current_path}/log" |
55 | execute "ln -sf #{shared_path}/assets #{current_path}/public/assets" | 56 | execute "ln -sf #{shared_path}/assets #{current_path}/public/assets" |
56 | execute "ln -sf #{shared_path}/tmp #{current_path}/tmp" | 57 | execute "ln -sf #{shared_path}/tmp #{current_path}/tmp" |
58 | execute "ln -sf #{shared_path}/uploads #{current_path}/public/uploads" | ||
57 | end | 59 | end |
58 | end | 60 | end |
59 | 61 | ... | ... |
-
Please register or sign in to post a comment