recipiez 0.6.22 → 0.6.23
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/logrotate.rb +2 -1
- metadata +2 -2
data/lib/recipiez/version.rb
CHANGED
data/recipes/logrotate.rb
CHANGED
@@ -32,7 +32,8 @@ Capistrano::Configuration.instance(true).load do
|
|
32
32
|
task :move_log_dir_to_mnt do
|
33
33
|
sudo "mkdir -p /mnt/application_logs/#{application}"
|
34
34
|
sudo "chown -R #{user}:#{user} /mnt/application_logs/#{application}"
|
35
|
-
sudo "mv /var/www/apps/#{application}/shared/log
|
35
|
+
sudo "mv /var/www/apps/#{application}/shared/log/* /mnt/application_logs/#{application}"
|
36
|
+
sudo "rm -fr /var/www/apps/#{application}/shared/log"
|
36
37
|
sudo "ln -s /mnt/application_logs/#{application} /var/www/apps/#{application}/shared/log"
|
37
38
|
# Now need to deploy the app.
|
38
39
|
end
|