procsd 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -3
- data/lib/procsd/cli.rb +6 -3
- data/lib/procsd/generator.rb +2 -0
- data/lib/procsd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8e46fcf465ed019b9ec9e9c77466ac959c0cc478e57f29d0b0dfcedf936ddfd
|
4
|
+
data.tar.gz: c7ba7690a99bde57f8c16512ba052a52d6da64f83619a33970a3fcddf48a65e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16d5b9e1ff29bfcedbfe29e0f455b289e527f5cbb1ef4e14a0de2e7c677d30ed00c1584264293ea35ca123ce7d74045403bcf2f09926268d234c7e5f6590fe2e
|
7
|
+
data.tar.gz: 1c554a1804e6bfdab700808dd31b9dbc5ac88ff041ad6eda1f3be17edcd16542bc3502596509c5704b9225d8aba3cd5c6f718c7dcc577143ed032dcc189d4c6d
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
# CHANGELOG
|
2
|
+
## 0.5.1
|
3
|
+
* Fix bug `uninitialized constant Procsd::Generator::Pathname`, thanks to @koppen
|
4
|
+
|
2
5
|
## 0.5.0
|
3
6
|
* **Breaking change:** Changed the way how to define SSL option for Ngnix configuration in procsd.yml (and by default contact email is not required anymore)
|
4
7
|
|
data/README.md
CHANGED
@@ -218,8 +218,6 @@ Add to your procsd.yml `nginx` section with `server_name` option defined:
|
|
218
218
|
|
219
219
|
> If your application use multiple domains/subdomains, add all of them separated with space: `server_name: my-domain.com us.my-domain.com uk.my-domain.com`
|
220
220
|
|
221
|
-
> It's required to provide `PORT` number environment variable in `procsd.yml`. Provided port number will be used to proxy requests from Nginx to application server.
|
222
|
-
|
223
221
|
```yml
|
224
222
|
app: sample_app
|
225
223
|
processes:
|
@@ -227,7 +225,8 @@ processes:
|
|
227
225
|
worker: bundle exec sidekiq -e $RAILS_ENV
|
228
226
|
formation: web=1,worker=2
|
229
227
|
environment:
|
230
|
-
PORT: 2501
|
228
|
+
PORT: 2501 # PORT will be used by Nginx to proxy requests from 0.0.0.0:80/443 to 127.0.0.1:PORT (required)
|
229
|
+
HOST: localhost # Make sure that your application server in production running on 127.0.0.1, not 0.0.0.0
|
231
230
|
RAILS_ENV: production
|
232
231
|
RAILS_LOG_TO_STDOUT: true
|
233
232
|
nginx:
|
data/lib/procsd/cli.rb
CHANGED
@@ -70,7 +70,7 @@ module Procsd
|
|
70
70
|
execute %W(sudo rm #{path}) and say "Deleted: #{path}" if File.exist?(path)
|
71
71
|
end
|
72
72
|
|
73
|
-
execute %w(sudo systemctl restart nginx)
|
73
|
+
execute %w(sudo systemctl reload-or-restart nginx)
|
74
74
|
say("Nginx config removed and daemon reloaded", :green)
|
75
75
|
end
|
76
76
|
else
|
@@ -267,8 +267,7 @@ module Procsd
|
|
267
267
|
|
268
268
|
if nginx = @config[:nginx]
|
269
269
|
generator.generate_nginx_conf(save: true)
|
270
|
-
|
271
|
-
say("Nginx config created and daemon reloaded", :green)
|
270
|
+
say("Nginx config created", :green)
|
272
271
|
|
273
272
|
# Reference: https://certbot.eff.org/docs/using.html#certbot-command-line-options
|
274
273
|
# How it works in Caddy https://caddyserver.com/docs/automatic-https
|
@@ -292,6 +291,10 @@ module Procsd
|
|
292
291
|
say(msg, :red)
|
293
292
|
end
|
294
293
|
end
|
294
|
+
|
295
|
+
if execute %w(sudo systemctl reload-or-restart nginx)
|
296
|
+
say("Nginx daemon reloaded", :green)
|
297
|
+
end
|
295
298
|
end
|
296
299
|
end
|
297
300
|
|
data/lib/procsd/generator.rb
CHANGED
data/lib/procsd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Afanasev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|