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: b4f9505d5b722c1501903912e12ada771884aa03
4
- data.tar.gz: 9320a6d1a5d8ebff1f57441517f540a74fe2f390
3
+ metadata.gz: 5ab968aa5ad308040c197df5f828a82c5f69b823
4
+ data.tar.gz: 9501dd1122ec6a4d120e8e35c89bba25b4c11583
5
5
  SHA512:
6
- metadata.gz: a0dbf4d5a541f8673c9acb39e085b3e4963cfb7e0649dd6895a3a0b45846a14a5d380a0d3d051c12982a6899a3b5fc0f6e5cfa630ca2b8d2f82b2d210136bdb2
7
- data.tar.gz: ba065981aed2ad19f29f80721f4b78e4f577f10ba37c4279ebe9c331acc7f556821c79c16235fcdbd04cc7c9db82c2f1360b638eaeac2f0f4a1d1429a7846bf9
6
+ metadata.gz: 1f776eb327e98a30cb52b92a3d83fc5372ec88f35c22b62815465a879efa055d98d5165cd25c9b7c48972a4badfed72f5c77ff63152d63bd040b57db6f082e78
7
+ data.tar.gz: 195f112cb1a9f700854a98683f9b538105504a31b5c9c9882d64e466f7ce225f71ca642970c0b2e6a2aa1bcaafde3ca09015a7c0ad1058dd19969cc0069ac0bc
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module MagicRecipes
3
- VERSION = "0.0.26"
3
+ VERSION = "0.0.27"
4
4
  end
5
5
  end
@@ -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 %> ; bundle exec thin start -C config/thin_app_<%= fetch(:stage) %>.yml -o <%= n %>' "
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes_two
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel