capistrano3-puma 0.8.3 → 0.8.4
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 +4 -4
- data/README.md +3 -2
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/tasks/monit.cap +4 -4
- data/lib/capistrano/tasks/puma.cap +2 -2
- data/lib/capistrano/templates/nginx_conf.erb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f37043e11c00bbf05127487cb0db68bb106120f5
|
4
|
+
data.tar.gz: 8a413a81ad477bab83a07a5498c8260dfb84b6ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a036762c011be4afaf8b613baa13b2f96612a838f560335473354c9e0e9618169573a4a4d943a4b7f0f4956d4b9135ed0fbfb77d7d3a2afa327ca8711042b4b1
|
7
|
+
data.tar.gz: 464224d5cc6113970787efe15b123ddb98717d7e3cb302c7c4dc8d56c7488637faf3660f829fb6f64da4cccfe8043daac62f9495c6263555deaacc4ec1ab64a8
|
data/README.md
CHANGED
@@ -59,8 +59,8 @@ Configurable options, shown here with defaults: Please note the configuration op
|
|
59
59
|
set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
|
60
60
|
set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock" #accept array for multi-bind
|
61
61
|
set :puma_conf, "#{shared_path}/puma.rb"
|
62
|
-
set :puma_access_log, "#{shared_path}/log/
|
63
|
-
set :puma_error_log, "#{shared_path}/log/
|
62
|
+
set :puma_access_log, "#{shared_path}/log/puma_access.log"
|
63
|
+
set :puma_error_log, "#{shared_path}/log/puma_error.log"
|
64
64
|
set :puma_role, :app
|
65
65
|
set :puma_env, fetch(:rack_env, fetch(:rails_env, 'production'))
|
66
66
|
set :puma_threads, [0, 16]
|
@@ -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
|
+
- 0.8.4: Allow patch method (Nginx template) @lonre
|
97
98
|
- 0.8.2: Start task creates a conf file if none exists @stevemadere
|
98
99
|
- 0.8.1: Fixed nginx task @hnatt, support for prune_bundler @behe
|
99
100
|
- 0.8.0: Some changes
|
@@ -31,21 +31,21 @@ namespace :puma do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
desc '
|
34
|
+
desc 'Start Puma monit-service'
|
35
35
|
task :start do
|
36
36
|
on roles(fetch(:puma_role)) do
|
37
37
|
sudo "#{fetch(:puma_monit_bin)} start #{puma_monit_service_name}"
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
desc '
|
41
|
+
desc 'Stop Puma monit-service'
|
42
42
|
task :stop do
|
43
43
|
on roles(fetch(:puma_role)) do
|
44
44
|
sudo "#{fetch(:puma_monit_bin)} stop #{puma_monit_service_name}"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
desc '
|
48
|
+
desc 'Restart Puma monit-service'
|
49
49
|
task :restart do
|
50
50
|
on roles(fetch(:puma_role)) do
|
51
51
|
sudo "#{fetch(:puma_monit_bin)} restart #{puma_monit_service_name}"
|
@@ -53,7 +53,7 @@ namespace :puma do
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def puma_monit_service_name
|
56
|
-
fetch(:puma_monit_service_name, "puma_#{fetch(:application)}")
|
56
|
+
fetch(:puma_monit_service_name, "puma_#{fetch(:application)}_#{fetch(:stage)}")
|
57
57
|
end
|
58
58
|
|
59
59
|
end
|
@@ -29,8 +29,8 @@ namespace :load do
|
|
29
29
|
set :nginx_sites_enabled_path, -> { '/etc/nginx/sites-enabled' }
|
30
30
|
set :nginx_server_name, -> { "localhost #{fetch(:application)}.local" }
|
31
31
|
set :nginx_flags, -> { 'fail_timeout=0' }
|
32
|
-
|
33
|
-
|
32
|
+
set :nginx_http_flags, -> { fetch(:nginx_flags) }
|
33
|
+
set :nginx_socket_flags, -> { fetch(:nginx_flags) }
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
upstream puma_<%= fetch(:nginx_config_name) %> { <%
|
2
2
|
flags = 'fail_timeout=0'
|
3
3
|
@backends = [fetch(:puma_bind)].flatten.map do |m|
|
4
|
-
etype, address = /(tcp|unix|ssl)
|
4
|
+
etype, address = /(tcp|unix|ssl):\/{1,2}(.+)/.match(m).captures
|
5
5
|
if etype =='unix'
|
6
6
|
"server #{etype}:#{address} #{fetch(:nginx_socket_flags)};"
|
7
7
|
else
|
@@ -57,7 +57,7 @@ server {
|
|
57
57
|
rewrite ^(.*)$ /503.html break;
|
58
58
|
}
|
59
59
|
|
60
|
-
if ($request_method !~ ^(GET|HEAD|PUT|POST|DELETE|OPTIONS)$ ){
|
60
|
+
if ($request_method !~ ^(GET|HEAD|PUT|PATCH|POST|DELETE|OPTIONS)$ ){
|
61
61
|
return 405;
|
62
62
|
}
|
63
63
|
|
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: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -96,3 +96,4 @@ signing_key:
|
|
96
96
|
specification_version: 4
|
97
97
|
summary: Puma integration for Capistrano
|
98
98
|
test_files: []
|
99
|
+
has_rdoc:
|