procsd 0.5.0 → 0.5.1

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: da11e4c031739d5f93c9b4b4135da9f8589fbe04348ae9dad0a87b212e3de7ec
4
- data.tar.gz: cea50b63954f02b21f713e6658feec63017b5718024b0447be5975b628d1ada9
3
+ metadata.gz: c8e46fcf465ed019b9ec9e9c77466ac959c0cc478e57f29d0b0dfcedf936ddfd
4
+ data.tar.gz: c7ba7690a99bde57f8c16512ba052a52d6da64f83619a33970a3fcddf48a65e9
5
5
  SHA512:
6
- metadata.gz: b758ae08dbaa3682314f5e378e3b2db1396d73e47e7af096a3176dda7b00a59b040e028ef5af7712068dfcfb1e944367184f29606eb8d30d4af44a9198d49722
7
- data.tar.gz: 95ca90f04d4f7a4c2e4569f526920cf91dd18b6fd7a431f17b69bb6509d6c6fc0d210c3e9c8ae96411c1429a9533ad80009fa4f413acef34a57acd0112bf2536
6
+ metadata.gz: 16d5b9e1ff29bfcedbfe29e0f455b289e527f5cbb1ef4e14a0de2e7c677d30ed00c1584264293ea35ca123ce7d74045403bcf2f09926268d234c7e5f6590fe2e
7
+ data.tar.gz: 1c554a1804e6bfdab700808dd31b9dbc5ac88ff041ad6eda1f3be17edcd16542bc3502596509c5704b9225d8aba3cd5c6f718c7dcc577143ed032dcc189d4c6d
@@ -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:
@@ -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
- execute %w(sudo systemctl restart nginx)
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
 
@@ -1,3 +1,5 @@
1
+ require "pathname"
2
+
1
3
  module Procsd
2
4
  class Generator
3
5
  attr_reader :app_name, :target_name
@@ -1,3 +1,3 @@
1
1
  module Procsd
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor