capistrano-buildpack 0.0.10 → 0.0.11
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.
- data/README.md +1 -0
- data/lib/capistrano-buildpack/tasks.rb +2 -1
- data/lib/capistrano-buildpack/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -71,6 +71,7 @@ Several other settings are available:
|
|
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
73
|
* `force_domain`: Force a redirect to the given domain.
|
74
|
+
* `default_server`: Declare that this app is the default for this server. Can only have one per nginx.
|
74
75
|
|
75
76
|
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.
|
76
77
|
|
@@ -82,9 +82,10 @@ if Capistrano::Configuration.instance
|
|
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
84
|
_force_domain = exists?(:force_domain) ? "FORCE_DOMAIN=#{force_domain}" : ''
|
85
|
+
_default_server = exists?(:default_server) ? "DEFAULT_SERVER=true" : ''
|
85
86
|
|
86
87
|
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}"
|
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}"
|
88
|
+
sudo "env #{_use_ssl} #{_ssl_cert_path} #{_ssl_key_path} #{_force_ssl} #{_force_domain} 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} -c #{concurrency}"
|
88
89
|
sudo "service #{application} restart || service #{application} start"
|
89
90
|
sudo "service nginx reload || service nginx start"
|
90
91
|
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.11
|
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-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Deploy 12-factor applications using Capistrano
|
15
15
|
email:
|