deploify 0.2.18 → 0.2.19
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/.gitignore +1 -0
- data/lib/deploify/recipes/nginx.rb +1 -0
- data/lib/deploify/recipes/rails.rb +2 -0
- data/lib/deploify/templates/nginx/vhost_http_force_ssl.conf.erb +3 -0
- data/lib/deploify/templates/nginx/vhost_http_only.conf.erb +3 -0
- data/lib/deploify/templates/nginx/vhost_http_with_ssl.conf.erb +3 -0
- data/lib/deploify/version.rb +1 -1
- metadata +4 -4
data/.gitignore
CHANGED
@@ -9,6 +9,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
9
9
|
set :nginx_vhost_type, :http_only
|
10
10
|
set :nginx_vhost_listen_ip, nil
|
11
11
|
set :nginx_upstream_servers, []
|
12
|
+
set :nginx_proxy_read_timeout, 0
|
12
13
|
# secured sites stuff
|
13
14
|
set :nginx_secured_site, false
|
14
15
|
set :nginx_secure_user, "developer"
|
@@ -177,6 +177,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
177
177
|
set(:db_password) { Capistrano::CLI.ui.ask "Enter database password" }
|
178
178
|
set(:db_name) { application }
|
179
179
|
set :db_encoding, "utf8"
|
180
|
+
set :db_pool, 5
|
180
181
|
|
181
182
|
desc "Link in the production database.yml"
|
182
183
|
task :symlink_database_yml, :roles => :app do
|
@@ -193,6 +194,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
193
194
|
database: #{db_name}
|
194
195
|
encoding: #{db_encoding}
|
195
196
|
host: #{db_host}
|
197
|
+
pool: #{db_pool}
|
196
198
|
socket: #{db_socket}
|
197
199
|
EOF
|
198
200
|
std.su_put(database_yml.result, "#{shared_path}/config/database.yml", "/tmp/")
|
@@ -47,6 +47,9 @@ server {
|
|
47
47
|
location @upstream {
|
48
48
|
proxy_pass http://<%= nginx_upstream_name %>;
|
49
49
|
proxy_redirect off;
|
50
|
+
<%- if nginx_proxy_read_timeout > 0 -%>
|
51
|
+
proxy_read_timeout <%= nginx_proxy_read_timeout %>;
|
52
|
+
<%- end -%>
|
50
53
|
proxy_set_header Host $host;
|
51
54
|
proxy_set_header X-Real-IP $remote_addr;
|
52
55
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -34,6 +34,9 @@ server {
|
|
34
34
|
location @upstream {
|
35
35
|
proxy_pass http://<%= nginx_upstream_name %>;
|
36
36
|
proxy_redirect off;
|
37
|
+
<%- if nginx_proxy_read_timeout > 0 -%>
|
38
|
+
proxy_read_timeout <%= nginx_proxy_read_timeout %>;
|
39
|
+
<%- end -%>
|
37
40
|
proxy_set_header Host $host;
|
38
41
|
proxy_set_header X-Real-IP $remote_addr;
|
39
42
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
@@ -34,6 +34,9 @@ server {
|
|
34
34
|
location @upstream {
|
35
35
|
proxy_pass http://<%= nginx_upstream_name %>;
|
36
36
|
proxy_redirect off;
|
37
|
+
<%- if nginx_proxy_read_timeout > 0 -%>
|
38
|
+
proxy_read_timeout <%= nginx_proxy_read_timeout %>;
|
39
|
+
<%- end -%>
|
37
40
|
proxy_set_header Host $host;
|
38
41
|
proxy_set_header X-Real-IP $remote_addr;
|
39
42
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
data/lib/deploify/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 19
|
10
|
+
version: 0.2.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Richard Riman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-09-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|