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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59f61cb194d310ca9c6335cd5942bf251ebdd828f55bb9d08d9df2a37d995436
4
- data.tar.gz: 261c4b4c4c89966623435e93f4674491cc871a8f2aa25f52e283a35886676ac2
3
+ metadata.gz: 2ed82788ed0ec64329b59d74eb0f4e0d49bedca7387f004c46b2ca7a4e0b46d9
4
+ data.tar.gz: fddbb7b8f49ef7a380e6f06bc996102f923d8f2dbacbe17f8345f2a6e63b0722
5
5
  SHA512:
6
- metadata.gz: 67f646b091defdb6acabfda07beaac750c8aae7ab71c8c0cfabca21dd832c7676623f11a70dfc055c9d540dac07d36bbe51c4cd8150323c1ca7637bf1934c160
7
- data.tar.gz: 50a8573b93b83dce3e8a6f09a75ee9bb85f99e184de1c49575a63a55559628faaff83d6019b6ceb736a1ac9a111364ac8920edf554d77f89ec4cb956edf8aa0d
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, -> { 1 }
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
+
@@ -1,3 +1,3 @@
1
1
  module Capistrano
2
- NGINX_UNIT_VERSION = "0.4.4"
2
+ NGINX_UNIT_VERSION = "0.5.0"
3
3
  end
@@ -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, -> { 1 }
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) || host.user,
73
- group: fetch(:nginx_unit_group) || host.user,
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nginx-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - murakmii