capistrano-buildpack 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano-buildpack/tasks.rb +8 -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: fc7e8eb0220bd96219bfb8288fc0497ac2a82729
|
4
|
+
data.tar.gz: 82b892f3e8ce3d28e7b7cff808921be6729c261c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1054b972e6e520b47aaabbb38c4e8d96e3ec43a0875620410476cc7ef587f8f7ee1af0dbbe589adca26d6e8e65dbe3e7b2a1750bf3ada14e8e712466c8b441c1
|
7
|
+
data.tar.gz: 144220e0a12d428b7a27c89ddbbfda9bb15d233cb81d4241ddcbde2e1effd6e780b52d42c7de4bbcee2e8f4fbbcf9b3d919bc7cc19c9d0f9f9109765ce0b69fe
|
@@ -90,8 +90,14 @@ if Capistrano::Configuration.instance
|
|
90
90
|
|
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
|
-
|
94
|
-
|
93
|
+
|
94
|
+
if foreman_export_type.to_s == 'systemd'
|
95
|
+
sudo "systemctl restart #{application}.target || systemctl start #{application}.target"
|
96
|
+
sudo "systemctl restart nginx || systemctl start nginx"
|
97
|
+
else
|
98
|
+
sudo "service #{application} restart || service #{application} start"
|
99
|
+
sudo "service nginx reload || service nginx start"
|
100
|
+
end
|
95
101
|
end
|
96
102
|
|
97
103
|
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.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Deploy 12-factor applications using Capistrano
|
14
14
|
email:
|