recipiez 0.6.26 → 0.7.0

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.26'
2
+ VERSION = '0.7.0'
3
3
  end
data/recipes/logrotate.rb CHANGED
@@ -14,33 +14,6 @@ Capistrano::Configuration.instance(true).load do
14
14
  sudo "chmod 644 /etc/logrotate.d/#{application}"
15
15
  end
16
16
 
17
- desc "Configure logrotate for high traffic apps on EC2"
18
- task :configure_ec2_performance, :roles => [:app, :web] do
19
- _cset :log_directory, 'log'
20
-
21
- sudo "mkdir -p /mnt/archived_logs/#{application}"
22
- sudo "chown -R #{user}:#{user} /mnt/archived_logs"
23
- generated = render('logrotate_ec2', binding)
24
- puts generated
25
- put generated, "#{application}"
26
- sudo "mv #{application} /etc/logrotate.d/#{application}"
27
- sudo "chown root:root /etc/logrotate.d/#{application}"
28
- sudo "chmod 644 /etc/logrotate.d/#{application}"
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
- begin
36
- sudo "mv /var/www/apps/#{application}/shared/log/* /mnt/application_logs/#{application}"
37
- rescue
38
- # ignore the error from this
39
- end
40
- sudo "rm -fr /var/www/apps/#{application}/shared/log"
41
- sudo "ln -s /mnt/application_logs/#{application} /var/www/apps/#{application}/shared/log"
42
- end
43
-
44
17
  end
45
18
 
46
19
  end
data/recipes/node.rb CHANGED
@@ -12,18 +12,7 @@ Capistrano::Configuration.instance(true).load do
12
12
  sudo "mv #{application}.conf /etc/init/#{application}.conf"
13
13
  end
14
14
 
15
- desc "Install the nodejs components to the server, ec2 only!"
16
- task :setup_ec2 do
17
- recipiez::setup
18
- nginx::nodejs
19
- node::generate_upstart
20
- monit::node
21
- logrotate::configure_ec2_performance
22
- recipiez::bundler
23
- recipiez::libxml
24
- end
25
-
26
- desc "Install nodejs non ec2"
15
+ desc "Setup a server to deploy a rails app."
27
16
  task :setup do
28
17
  recipiez::setup
29
18
  nginx::nodejs
@@ -36,7 +25,6 @@ Capistrano::Configuration.instance(true).load do
36
25
 
37
26
  end
38
27
 
39
-
40
28
  namespace :npm do
41
29
  task :install do
42
30
  run "cd #{release_path} && npm install"
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
8
- - 26
9
- version: 0.6.26
7
+ - 7
8
+ - 0
9
+ version: 0.7.0
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-10-03 00:00:00 +02:00
17
+ date: 2014-10-13 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency