capistrano3-puma 1.0.0 → 1.1.0

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: 1abd86de25bfabf43b77b3968938ac1cf4f3791c
4
- data.tar.gz: 4b944a60a84f810899c2d2aa51f688923bcc8e3a
3
+ metadata.gz: a285319ce829244caa77fe60b0e120c41c7b07f8
4
+ data.tar.gz: 848e536e6d08bea1207b12ba4e01b632128efe0e
5
5
  SHA512:
6
- metadata.gz: 502c4c5c598ce04f6dd5ba94baef6977f77db7535af5109190125ba040c9332dabfdab88a32ed3ab17a032f84a532cd451a618665b89f83907d98dfecad1aae5
7
- data.tar.gz: 714afaa7aa7bdbeb47e83ebf3c456e1147c5fc6beb2fe4aed0aa1493f24bb7f5c081272249196c61c4078112a301e81de5606b1eb44070f14f80f0528c58fc49
6
+ metadata.gz: b4ea06110afed0438c01329a8720fc85a99e4e6064060dde896cd2fdf4028a0a2ac76380e111febc3ec7feac0b1b1025c434e5968e6f12e077de8d4e0f2f3168
7
+ data.tar.gz: 4841fbeb5154fd76a6f2b44673ccb99cd695b6a2000366071c00d6553a96e3eaa7f3b2e8e41344e0b84c36f77e1d17c03b60015390268b33c2cdae9383671c41
data/README.md CHANGED
@@ -94,6 +94,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
94
94
  tmp/pids tmp/sockets log
95
95
 
96
96
  ## Changelog
97
+ - 1.1.0: Set :puma_preload_app to false; Reload Monit after uploading any monit configuration; Always refresh Gemfile @rafaelgoulart @suhailpatel @sime
97
98
  - 1.0.0: Add activate control app @askagirl
98
99
  - 0.8.5: Fix smart_restart task to check if puma preloads app
99
100
  - 0.8.4: Allow patch method (Nginx template) @lonre
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -14,6 +14,7 @@ namespace :puma do
14
14
  @role = role
15
15
  template_puma 'puma_monit.conf', "#{fetch(:tmp_dir)}/monit.conf", @role
16
16
  sudo "mv #{fetch(:tmp_dir)}/monit.conf #{fetch(:puma_monit_conf_dir)}"
17
+ sudo "#{fetch(:puma_monit_bin)} reload"
17
18
  end
18
19
  end
19
20
 
@@ -17,7 +17,7 @@ namespace :load do
17
17
  set :puma_access_log, -> { File.join(shared_path, 'log', 'puma_access.log') }
18
18
  set :puma_error_log, -> { File.join(shared_path, 'log', 'puma_error.log') }
19
19
  set :puma_init_active_record, false
20
- set :puma_preload_app, true
20
+ set :puma_preload_app, false
21
21
 
22
22
  # Rbenv and RVM integration
23
23
  set :rbenv_map_bins, fetch(:rbenv_map_bins).to_a.concat(%w{ puma pumactl })
@@ -22,16 +22,16 @@ workers <%= puma_workers %>
22
22
  worker_timeout <%= fetch(:puma_worker_timeout).to_i %>
23
23
  <% end %>
24
24
 
25
- <% if puma_preload_app? %>
25
+ <% if puma_preload_app? %>
26
26
  preload_app!
27
+ <% else %>
28
+ prune_bundler
29
+ <% end %>
27
30
 
28
31
  on_restart do
29
32
  puts 'Refreshing Gemfile'
30
33
  ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
31
34
  end
32
- <% else %>
33
- prune_bundler
34
- <% end %>
35
35
 
36
36
  <% if fetch(:puma_init_active_record) %>
37
37
  on_worker_boot do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-05 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano