capistrano-buildpack 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/lib/capistrano-buildpack/tasks.rb +2 -1
- data/lib/capistrano-buildpack/version.rb +1 -1
- metadata +2 -3
data/README.md
CHANGED
@@ -64,12 +64,13 @@ Deploy will do the following things:
|
|
64
64
|
The nginx config will list at least one domain for the app: `<application>.<hostname>`, which in this case is `bugsplatdotinfo.examplevps.bugsplat.info`. Anything
|
65
65
|
you add to the `:additional_domains` setting gets tacked on at the end.
|
66
66
|
|
67
|
-
Several other settings are available
|
67
|
+
Several other settings are available:
|
68
68
|
|
69
69
|
* `use_ssl`: true to listen on port 443
|
70
70
|
* `ssl_cert_path`: a path to a certificate file on the server. You are responsible for getting the certificate there.
|
71
71
|
* `ssl_key_path`: a path to a key file on the server. You are responsible for getting it there.
|
72
72
|
* `force_ssl`: Force a redirect to SSL. This will unconditionally redirect to the first domain in `additional_domains`, so if you have multiple you may want to do this in your app instead.
|
73
|
+
* `force_domain`: Force a redirect to the given domain.
|
73
74
|
|
74
75
|
To run your app as a different user than `:user`, use the `:app_user` setting. This user will not be created for you, you'll need to create it yourself, and it must have a proper home directory.
|
75
76
|
|
@@ -81,9 +81,10 @@ if Capistrano::Configuration.instance
|
|
81
81
|
_ssl_cert_path = exists?(:ssl_cert_path) ? "SSL_CERT_PATH=#{ssl_cert_path}" : ''
|
82
82
|
_ssl_key_path = exists?(:ssl_key_path) ? "SSL_KEY_PATH=#{ssl_key_path}" : ''
|
83
83
|
_force_ssl = exists?(:force_ssl) ? "FORCE_SSL=#{force_ssl}" : ''
|
84
|
+
_force_domain = exists?(:force_domain) ? "FORCE_DOMAIN=#{force_domain}" : ''
|
84
85
|
|
85
86
|
sudo "foreman export #{foreman_export_type} #{foreman_export_path} -d #{release_path} -l /var/log/#{application} -a #{application} -u #{app_user} -p #{base_port} -c #{concurrency}"
|
86
|
-
sudo "env #{_use_ssl} #{_ssl_cert_path} #{_ssl_key_path} #{_force_ssl} ADDITIONAL_DOMAINS=#{additional_domains.join(',')} 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} -c #{concurrency}"
|
87
|
+
sudo "env #{_use_ssl} #{_ssl_cert_path} #{_ssl_key_path} #{_force_ssl} #{_force_domain} ADDITIONAL_DOMAINS=#{additional_domains.join(',')} 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} -c #{concurrency}"
|
87
88
|
sudo "service #{application} restart || service #{application} start"
|
88
89
|
sudo "service nginx reload || service nginx start"
|
89
90
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-04 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Deploy 12-factor applications using Capistrano
|
15
15
|
email:
|
@@ -52,4 +52,3 @@ signing_key:
|
|
52
52
|
specification_version: 3
|
53
53
|
summary: Deploy 12-factor applications using Capistrano
|
54
54
|
test_files: []
|
55
|
-
has_rdoc:
|