magic_recipes_two 0.0.29 → 0.0.30
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2b0b7af1195077f81b90071dc367159587c9eb
|
4
|
+
data.tar.gz: c887513e209a140402efe284a79dc72cd524be4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17954f6767dec62c65fc1203be036fdbdf70d7856416f1a410514d8d3988b865628a09b9e05eb427ea8f1605444a2212f765b8a84b92b44ada9f35f96ce23f2d
|
7
|
+
data.tar.gz: c4a8dae99745d9ad2b790a0343bbf938fdbc82d5923ef2bae39eb3fd310688b938198fef2a3595486f055e47db4a9ee754ce7425f2f2226bdb8b10d59333451d
|
@@ -3,7 +3,7 @@
|
|
3
3
|
check process <%= fetch(:application) %>_<%= fetch(:stage) %>_thin_<%= n %> with pidfile <%= deploy_to %>/shared/pids/thin_<%= fetch(:application) %>_<%= fetch(:stage) %>.<%= n %>.pid
|
4
4
|
group thin-<%= fetch(:application) %>
|
5
5
|
group thin-<%= fetch(:stage) %>
|
6
|
-
start program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %>
|
6
|
+
start program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ;<% if fetch(:monit_thin_with_secret) %> export SECRET_KEY_BASE=<%= fetch(:secrets_key_base) %>; export <%= fetch(:secrets_key_name) %>=<%= fetch(:secrets_key_base) %>;<% end %> bundle exec thin start -C config/thin_app_<%= fetch(:stage) %>.yml -o <%= n %>' "
|
7
7
|
stop program = "/bin/su - <%= @role.user %> -c 'cd <%= current_path %> ; bundle exec thin stop -C config/thin_app_<%= fetch(:stage) %>.yml -o <%= n %>' "
|
8
8
|
if mem > 200.0 MB for 1 cycles then restart
|
9
9
|
if cpu > 50% for 3 cycles then restart
|
@@ -16,7 +16,4 @@ servers: <%= fetch(:app_instances) %>
|
|
16
16
|
# user: <%= fetch(:user) %>
|
17
17
|
socket: /tmp/thin.<%= fetch(:application) %>.<%= fetch(:stage) %>.sock
|
18
18
|
daemonize: true
|
19
|
-
onebyone: <%= fetch(:thin_onebyone) %>
|
20
|
-
<% if fetch(:monit_thin_with_secret) %>
|
21
|
-
SECRET_KEY_BASE: <%= fetch(:secrets_key_base) %>
|
22
|
-
<% end %>
|
19
|
+
onebyone: <%= fetch(:thin_onebyone) %>
|