magic_recipes_two 0.0.27 → 0.0.28
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53ac495aa6bc572fa1ce4d365d1c6e49bcedefe7
|
4
|
+
data.tar.gz: baa26970bb1e3e3d947782ea93b02cb9f5e35a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf8138cbce42a4250c6183f3c623517a128d663798cdfb9b45613b17538e0a14cec126b9c9f818ac5bfe19771e30b82fe04f0ec2baea576b5da468d69aa9b0df
|
7
|
+
data.tar.gz: c133b7da045f11b2c86ffa0db71f1d2319e74d2d8b72b5c8c548e06f6f84a3768943d735b746d15c15d4804a927e109a1263a91715d35d8bef09b317f55877ea
|
@@ -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 %> ; 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,4 +16,8 @@ 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) %>
|
19
|
+
onebyone: <%= fetch(:thin_onebyone) %>
|
20
|
+
<% if fetch(:monit_thin_with_secret) %>
|
21
|
+
SECRET_KEY_BASE: <%= fetch(:secrets_key_base) %>
|
22
|
+
<%= fetch(:secrets_key_name, "APP_SECRET_KEY_BASE") %>: <%= fetch(:secrets_key_base) %>
|
23
|
+
<% end %>
|