capistrano-buildpack 0.0.17 → 0.0.18
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/lib/capistrano-buildpack/tasks.rb +6 -2
- data/lib/capistrano-buildpack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bf63ce02a9b76b690c4d2d5dabc2e34fc1ddb06
|
|
4
|
+
data.tar.gz: b3eef2750395440d74993c0b4b1901c1bc967910
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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.
|
|
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-
|
|
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:
|