capistrano-buildpack 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3710176be34648f218894c4e98b9dd3b01592f5
4
- data.tar.gz: 4394764e59822d7f1147f2e4fe5fd55a66228306
3
+ metadata.gz: 0bf63ce02a9b76b690c4d2d5dabc2e34fc1ddb06
4
+ data.tar.gz: b3eef2750395440d74993c0b4b1901c1bc967910
5
5
  SHA512:
6
- metadata.gz: 29cb4a12efe4a8e6b44f6bd96ca7c3b2bb2822a0f9e3306609ca1b3019f5d221969e343922182f5e6c9c9f593765d9caeb8e3b32359ecb62679904defa24e2ae
7
- data.tar.gz: b91f848d2fcbcf1377ab82d40ff71789994f658b10bcfbd611f48e03ed41bc1e0c0504273b087353c658601f06b5f9b09a91650179bdd67c845f3450aa124a57
6
+ metadata.gz: 2aa88a5ea962de812412bd367f1ebbaf65eb1d68a1f4e043cebcb85dc53868920fdff84ca6009a683b334d04276ea9b282d2df9f3fe350f9b036cd11367aae8f
7
+ data.tar.gz: 91b168e7f25af93d7ad2969029d156de31ef610e9a21cb21a4372395089b5dc6d7bffc3a5c2004ddafb4279eb8ea8eb3d4339103ca794a5a6331edce4f2da50a
@@ -91,15 +91,19 @@ if Capistrano::Configuration.instance
91
91
  sudo "foreman export #{foreman_export_type} #{foreman_export_path} -d #{release_path} -l /var/log/#{application} -a #{application} -u #{app_user} -p #{base_port} -m #{concurrency}"
92
92
  sudo "env #{_use_ssl} #{_ssl_cert_path} #{_ssl_key_path} #{_force_ssl} #{_force_domain} #{_listen_address} ADDITIONAL_DOMAINS=#{additional_domains.join(',')} #{_default_server} BASE_DOMAIN=$CAPISTRANO:HOST$ nginx-foreman export nginx #{nginx_export_path} -d #{release_path} -l /var/log/apps -a #{application} -u #{app_user} -p #{base_port} -m #{concurrency}"
93
93
 
94
+ if foreman_export_type.to_s == 'systemd'
95
+ sudo "systemctl restart nginx || systemctl start nginx"
96
+ else
97
+ sudo "service nginx reload || service nginx start"
98
+ end
99
+
94
100
  next if concurrency == ''
95
101
 
96
102
  if foreman_export_type.to_s == 'systemd'
97
103
  sudo "systemctl daemon-reload"
98
104
  sudo "systemctl restart #{application}.target || systemctl start #{application}.target"
99
- sudo "systemctl restart nginx || systemctl start nginx"
100
105
  else
101
106
  sudo "service #{application} restart || service #{application} start"
102
- sudo "service nginx reload || service nginx start"
103
107
  end
104
108
  end
105
109
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Buildpack
3
- VERSION = "0.0.17"
3
+ VERSION = "0.0.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-buildpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Keen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-28 00:00:00.000000000 Z
11
+ date: 2018-07-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Deploy 12-factor applications using Capistrano
14
14
  email: