o2webappizer 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b9cf61e152ef3e774129b44eba0d82842690c6c
4
- data.tar.gz: 804860382c46612c968096df607c16d939a6af96
3
+ metadata.gz: a4d0f5a9c2c626adfb37797ea815038e9c0bff9d
4
+ data.tar.gz: fc8c48c3f82cae1abb1e57dbe7f7aa9d3b4f9b84
5
5
  SHA512:
6
- metadata.gz: 0a62ceca76e579f3a94a6204bb59d41388cc2788eb075bbc4cb7efa4316ea923927903554b307f8a95d905749dd36ff00774e10b32f62224e94ded5a8528a3a3
7
- data.tar.gz: 5a669bf4f64e85f30820fff78cb111a4b5b0360c6481267384e393f310b66fd7767cae55ffb7c8252789ad494fcb9f70caccbe784d95ff92399703be3fc6f78c
6
+ metadata.gz: cc85c422fe503852abaa7205083a1b5839338c821439323edaba994f7f248fe23a84ec585a12275e64ce8f37a05e8869a153c559a0587ea97958c94bc21451a6
7
+ data.tar.gz: edca23dd95b19e726ffe2fd1f6e323c91c982e638d5863ccb7e99b871c5d2b91006636bf84b11f6d52a39416598acbd7bf646721307629bfbccd8f65e5ac50e4
@@ -1,5 +1,5 @@
1
1
  module O2webappizer
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
4
  RAILS_VERSION = "4.2"
5
5
  end
@@ -18,27 +18,27 @@ set :passenger_restart_with_sudo, false
18
18
  set :passenger_restart_command, 'rbenv sudo passenger-config restart-app'
19
19
 
20
20
  # default to ['system']
21
- set :files_public_dirs, fetch(:files_public_dirs).push(*%W[
21
+ set :files_public_dirs, fetch(:files_public_dirs, []).push(*%W[
22
22
  <% if options.solidus? -%>
23
23
  spree
24
24
  <% end -%>
25
25
  ])
26
26
  # default to []
27
- set :files_private_dirs, fetch(:files_private_dirs).push(*%W[
27
+ set :files_private_dirs, fetch(:files_private_dirs, []).push(*%W[
28
28
  ])
29
29
 
30
30
  set :nginx_max_body_size, '10m'
31
31
  # default to ['system', 'images']
32
- set :nginx_public_dirs, fetch(:nginx_public_dirs).push(*%W[
32
+ set :nginx_public_dirs, fetch(:nginx_public_dirs, []).push(*%W[
33
33
  <% if options.solidus? -%>
34
34
  spree
35
35
  <% end -%>
36
36
  ])
37
37
  # default to ['404.html', '422.html', '500.html', 'favicon.ico']
38
- set :nginx_public_files, fetch(:nginx_public_files).push(*%W[
38
+ set :nginx_public_files, fetch(:nginx_public_files, []).push(*%W[
39
39
  ])
40
40
  # default to {}
41
- set :nginx_redirects, fetch(:nginx_redirects).merge({
41
+ set :nginx_redirects, fetch(:nginx_redirects, {}).merge({
42
42
  })
43
43
 
44
44
  set :pty, true
@@ -11,6 +11,8 @@ if sunzi.to_be_done "install analysers"; then
11
11
  sunzi.install "nethogs"
12
12
  sunzi.install "sysstat"
13
13
 
14
+ pip install ngxtop
15
+
14
16
  sed -i 's/#time-format %H:%M:%S/time-format %H:%M:%S/' /etc/goaccess.conf
15
17
  sed -i 's|#date-format %d/%b/%Y|date-format %d/%b/%Y|' /etc/goaccess.conf
16
18
  sed -i 's/#log-format %h %\^\[%d:%t %\^\] "%r" %s %b "%R" "%u"/log-format %h - %\^ \[%d:%t %\^\] "%r" %s %b "%R" "%u" %T %\^/' /etc/goaccess.conf
@@ -17,6 +17,7 @@ if sunzi.to_be_done "install librairies"; then
17
17
  sunzi.install "libxslt1-dev"
18
18
  sunzi.install "libcurl4-openssl-dev"
19
19
  sunzi.install "python-software-properties"
20
+ sunzi.install "python-pip"
20
21
  sunzi.install "libffi-dev"
21
22
  sunzi.install "imagemagick"
22
23
 
@@ -0,0 +1,10 @@
1
+ if sunzi.to_be_done "install monit"; then
2
+ sunzi.install "monit"
3
+
4
+ chown root:root /etc/monit/monitrc
5
+ chmod 0700 /etc/monit/monitrc
6
+
7
+ /etc/init.d/monit start
8
+
9
+ sunzi.done "install monit"
10
+ fi
@@ -16,6 +16,7 @@ source recipes/user.sh
16
16
  source recipes/analysers.sh
17
17
  source recipes/logrotate.sh
18
18
  source recipes/noatime.sh
19
+ source recipes/monit.sh
19
20
 
20
21
  sunzi.elapsed_time $start
21
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: o2webappizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -138,6 +138,7 @@ files:
138
138
  - templates/config/sunzi/recipes/analysers.sh
139
139
  - templates/config/sunzi/recipes/libraries.sh
140
140
  - templates/config/sunzi/recipes/logrotate.sh
141
+ - templates/config/sunzi/recipes/monit.sh
141
142
  - templates/config/sunzi/recipes/mysql.sh
142
143
  - templates/config/sunzi/recipes/noatime.sh
143
144
  - templates/config/sunzi/recipes/nodejs.sh
@@ -210,4 +211,3 @@ signing_key:
210
211
  specification_version: 4
211
212
  summary: Project Boilerplate Builder used by O2Web
212
213
  test_files: []
213
- has_rdoc: