recipiez 0.6.21 → 0.6.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Recipiez
2
- VERSION = '0.6.21'
2
+ VERSION = '0.6.22'
3
3
  end
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
- - 21
9
- version: 0.6.21
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-09-25 00:00:00 +02:00
17
+ date: 2014-10-02 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency