recipiez 0.6.21 → 0.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/logrotate.rb +10 -1
- metadata +3 -3
data/lib/recipiez/version.rb
CHANGED
data/recipes/logrotate.rb
CHANGED
@@ -18,7 +18,6 @@ Capistrano::Configuration.instance(true).load do
|
|
18
18
|
task :configure_ec2_performance, :roles => [:app, :web] do
|
19
19
|
_cset :log_directory, 'log'
|
20
20
|
|
21
|
-
# create the directory and chown in mnt TODO
|
22
21
|
sudo "mkdir -p /mnt/archived_logs/#{application}"
|
23
22
|
sudo "chown -R #{user}:#{user} /mnt/archived_logs"
|
24
23
|
generated = render('logrotate_ec2', binding)
|
@@ -28,6 +27,16 @@ Capistrano::Configuration.instance(true).load do
|
|
28
27
|
sudo "chown root:root /etc/logrotate.d/#{application}"
|
29
28
|
sudo "chmod 644 /etc/logrotate.d/#{application}"
|
30
29
|
end
|
30
|
+
|
31
|
+
desc "Move log directory to /mnt"
|
32
|
+
task :move_log_dir_to_mnt do
|
33
|
+
sudo "mkdir -p /mnt/application_logs/#{application}"
|
34
|
+
sudo "chown -R #{user}:#{user} /mnt/application_logs/#{application}"
|
35
|
+
sudo "mv /var/www/apps/#{application}/shared/log/ /mnt/application_logs/#{application}"
|
36
|
+
sudo "ln -s /mnt/application_logs/#{application} /var/www/apps/#{application}/shared/log"
|
37
|
+
# Now need to deploy the app.
|
38
|
+
end
|
39
|
+
|
31
40
|
end
|
32
41
|
|
33
42
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 22
|
9
|
+
version: 0.6.22
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alastair Brunton
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2014-
|
17
|
+
date: 2014-10-02 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|