magic_recipes_two 0.0.26 → 0.0.27
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: 5ab968aa5ad308040c197df5f828a82c5f69b823
|
4
|
+
data.tar.gz: 9501dd1122ec6a4d120e8e35c89bba25b4c11583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f776eb327e98a30cb52b92a3d83fc5372ec88f35c22b62815465a879efa055d98d5165cd25c9b7c48972a4badfed72f5c77ff63152d63bd040b57db6f082e78
|
7
|
+
data.tar.gz: 195f112cb1a9f700854a98683f9b538105504a31b5c9c9882d64e466f7ce225f71ca642970c0b2e6a2aa1bcaafde3ca09015a7c0ad1058dd19969cc0069ac0bc
|
@@ -21,6 +21,8 @@ namespace :load do
|
|
21
21
|
## Additional stuff for postrgres
|
22
22
|
set :postgresql_roles, -> { :db }
|
23
23
|
set :postgresql_pid, -> { "/var/run/postgresql/9.1-main.pid" }
|
24
|
+
## Additional stuff for thin (need secrets_key_base to be set)
|
25
|
+
set :monit_thin_with_secret, -> { false }
|
24
26
|
## WebClient
|
25
27
|
set :monit_http_client, -> { true }
|
26
28
|
set :monit_http_domain, -> { false }
|
@@ -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) %>;<% 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
|