mina-stack 0.0.11 → 0.0.12

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: e420d5af02d803a4395d7571a04a1d83802a7b4c
4
- data.tar.gz: c8b19e6dafbdbd3026085b1812bfbc73888e236e
3
+ metadata.gz: 6d6f1241619afaf384259c2fa10578a4ba12e348
4
+ data.tar.gz: b68dce1ee37c8a2a9362320901898972ec8eb6b7
5
5
  SHA512:
6
- metadata.gz: 2d80827b1e3db11e5bf3c28227a347c2c92ef8d11aefbc80cd02c46a2724240fdc557b61f15efb2b4935f301d80388947ba117f35603edba660d9f31e7e3c550
7
- data.tar.gz: 5621f8b4033f92c759aaf6ca52b17d65c8b399fddecc86acf4e69eb27136c2b987e6c45c0c4d1ec7bb2a9b2fa0b8415c20857aeb5e81d532442509694877b829
6
+ metadata.gz: 34fcebba3c9ac3cb7e8c642899d1bb066583384bcb1f7d635fe12d328a4935559959941745f9febd5751b95c817dc999e25c224d593c1ea232d5b1f3d51a4fa3
7
+ data.tar.gz: f92de1bba0bc3b83cb1255605856e9f52c96fa26694dbd734db1293a96d90acb8e82daad5986624ee4bc16e4dbb05b5932c5dd6722ebe65e2536fca7b31d5a03
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Stack
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
data/lib/recipes/puma.rb CHANGED
@@ -24,7 +24,7 @@ namespace :puma do
24
24
 
25
25
  desc "Phased-restart puma"
26
26
  task :'phased-restart' do
27
- queue "#{pumactl_cmd} -S #{puma_state} phased-restart"
27
+ queue "sudo reload #{puma_name}"
28
28
  queue %[echo "-----> Phased-restart puma."]
29
29
  end
30
30
 
@@ -4,10 +4,13 @@
4
4
  # allows you to manage multiple Puma instances with
5
5
  # Upstart, Ubuntu's native service management tool.
6
6
 
7
- description "Puma Background Worker"
7
+ description "Puma Server"
8
8
 
9
- # no "start on", we don't want to automatically start
9
+ start on runlevel [2345]
10
+ stop on runlevel [06]
10
11
 
12
+ reload signal USR1
13
+ normal exit 0 TERM
11
14
 
12
15
  setuid <%= user %>
13
16
  setgid <%= user %>
@@ -41,6 +44,6 @@ exec /bin/bash <<'EOT'
41
44
  # chruby 2.0.0
42
45
  fi
43
46
 
44
- <%= puma_cmd %> -C <%= puma_config %>
47
+ exec <%= puma_cmd %> -C <%= puma_config %>
45
48
  EOT
46
- end script
49
+ end script
@@ -22,7 +22,7 @@
22
22
  description "Sidekiq Background Worker"
23
23
 
24
24
  start on runlevel [2345]
25
- stop on runlevel [016]
25
+ stop on runlevel [06]
26
26
 
27
27
  setuid <%= user %>
28
28
  setgid <%= user %>
@@ -65,6 +65,6 @@ exec /bin/bash <<'EOT'
65
65
  # Logs out to /var/log/upstart/sidekiq.log by default
66
66
 
67
67
  cd <%= "#{deploy_to!}/#{current_path!}" %>
68
- <%= sidekiq_start %>
68
+ exec <%= sidekiq_start %>
69
69
  EOT
70
70
  end script
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Davydov