capistrano-nginx-unit 0.4.4 → 0.5.0
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 +49 -1
- data/lib/capistrano/nginx-unit/version.rb +1 -1
- data/lib/capistrano/tasks/nginx-unit.rake +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed82788ed0ec64329b59d74eb0f4e0d49bedca7387f004c46b2ca7a4e0b46d9
|
4
|
+
data.tar.gz: fddbb7b8f49ef7a380e6f06bc996102f923d8f2dbacbe17f8345f2a6e63b0722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b4ce5212be304463bf8f5d8bad709461626e47e6bef5732ed688167f485826bfeedf973f1b8e9a3c0b85f4e774edccfb9ecdc84d9d19b893fd2dac40a5a004
|
7
|
+
data.tar.gz: 2d30f7a0c1b098270d7b66c8c0d6678040de3736b4881322405c684805026c07b656795473d458ebe5afe3ed0efa6c51415feaee2bb1c9b3a7e03d89d169dc9c
|
data/README.md
CHANGED
@@ -46,9 +46,57 @@ set :nginx_unit_control_sock, -> { "/var/run/control.unit.sock" }
|
|
46
46
|
set :nginx_unit_options, -> { "" }
|
47
47
|
set :nginx_unit_listen, -> { "*:3000" }
|
48
48
|
set :nginx_unit_app_name, -> { fetch(:application) }
|
49
|
-
set :nginx_unit_processes, -> {
|
49
|
+
set :nginx_unit_processes, -> { nil }
|
50
50
|
set :nginx_unit_user, -> { nil }
|
51
51
|
set :nginx_unit_group, -> { nil }
|
52
52
|
set :nginx_unit_working_dir, -> { nil }
|
53
53
|
set :nginx_unit_script, -> { "config.ru" }
|
54
54
|
```
|
55
|
+
|
56
|
+
- `:nginx_unit_roles`
|
57
|
+
|
58
|
+
Roles to run tasks for NGINX Unit. Default: `:app`
|
59
|
+
|
60
|
+
- `:nginx_unit_pid`
|
61
|
+
|
62
|
+
Path to NGINX Unit's pid file. Default: `"/var/run/unit.pid"`
|
63
|
+
|
64
|
+
- `:nginx_unit_control_sock`
|
65
|
+
|
66
|
+
Path to NGINX Unit's unix domain socket path. Default: `"/var/run/control.unit.sock"`
|
67
|
+
|
68
|
+
- `:nginx_unit_options`
|
69
|
+
|
70
|
+
Additional options that is used when launch NGINX Unit by `nginx_unit:start`
|
71
|
+
|
72
|
+
- `:nginx_unit_listen`
|
73
|
+
|
74
|
+
IP Address and port where rack application listens on. Default: `"*:3000"`
|
75
|
+
See [Listeners configuration](https://unit.nginx.org/configuration/#listeners)
|
76
|
+
|
77
|
+
- `:nginx_unit_app_name`
|
78
|
+
|
79
|
+
Application name.
|
80
|
+
See [Applications configuration](https://unit.nginx.org/configuration/#applications)
|
81
|
+
|
82
|
+
- `:nginx_unit_processes`
|
83
|
+
|
84
|
+
Number of rack application processes. Default: `1`
|
85
|
+
See [Application Object configuration](https://unit.nginx.org/configuration/#application-objects)
|
86
|
+
|
87
|
+
- `:nginx_unit_user`
|
88
|
+
- `:nginx_unit_group`
|
89
|
+
|
90
|
+
Username and group of rack application process. Default: `"nobody"`
|
91
|
+
See [Application Object configuration](https://unit.nginx.org/configuration/#application-objects)
|
92
|
+
|
93
|
+
- `:nginx_unit_working_dir`
|
94
|
+
|
95
|
+
Working directory of rack application process. Default: `RELEASE_PATH`
|
96
|
+
See [Application Object configuration](https://unit.nginx.org/configuration/#application-objects)
|
97
|
+
|
98
|
+
- `:nginx_unit_script`
|
99
|
+
|
100
|
+
Rack application script path. Default: `RELEASE_PATH/config.ru`
|
101
|
+
See [Ruby application configuration](https://unit.nginx.org/configuration/#ruby-application)
|
102
|
+
|
@@ -6,7 +6,7 @@ namespace :load do
|
|
6
6
|
set :nginx_unit_options, -> { "" }
|
7
7
|
set :nginx_unit_listen, -> { "*:3000" }
|
8
8
|
set :nginx_unit_app_name, -> { fetch(:application) }
|
9
|
-
set :nginx_unit_processes, -> {
|
9
|
+
set :nginx_unit_processes, -> { nil }
|
10
10
|
set :nginx_unit_user, -> { nil }
|
11
11
|
set :nginx_unit_group, -> { nil }
|
12
12
|
set :nginx_unit_working_dir, -> { nil }
|
@@ -69,8 +69,8 @@ namespace :nginx_unit do
|
|
69
69
|
app_json = JSON.generate({
|
70
70
|
type: "ruby",
|
71
71
|
processes: fetch(:nginx_unit_processes),
|
72
|
-
user: fetch(:nginx_unit_user)
|
73
|
-
group: fetch(:nginx_unit_group)
|
72
|
+
user: fetch(:nginx_unit_user),
|
73
|
+
group: fetch(:nginx_unit_group),
|
74
74
|
working_directory: fetch(:nginx_unit_working_dir) || released_dir,
|
75
75
|
script: File.join(released_dir, fetch(:nginx_unit_script))
|
76
76
|
}.compact)
|