unicorn_deployer 0.0.1.6 → 0.0.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d87d4efa6bd3708b6492116184964701ee44ad2
|
4
|
+
data.tar.gz: 0f328594f0d3d3de7055bd51859494e8d1052067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3ba42ce7e97daa659f63f79124db5d9dc7136c31db0bdfa04ee529f465887cfcd8040c0892ad75bc6b0624a379a7a0647e86aacac7bd8fa3613bc927852eb42
|
7
|
+
data.tar.gz: 49f22e95dbaeaa7e03eee27b31d17a979864aeaaf7fee20985d14145fb689169168fa0e8eec8f6fe9385cd59207223039c012e2ad85887e0907075a604665869
|
@@ -1,4 +1,4 @@
|
|
1
|
-
upstream
|
1
|
+
upstream unicorn_<%= @application %> {
|
2
2
|
server unix:/tmp/unicorn.<%= @application %>.sock fail_timeout=0;
|
3
3
|
}
|
4
4
|
|
@@ -13,12 +13,12 @@ server {
|
|
13
13
|
add_header Cache-Control public;
|
14
14
|
}
|
15
15
|
|
16
|
-
try_files $uri/index.html $uri @
|
17
|
-
location @
|
16
|
+
try_files $uri/index.html $uri @unicorn_<%= @application %>;
|
17
|
+
location @unicorn_<%= @application %> {
|
18
18
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
19
19
|
proxy_set_header Host $http_host;
|
20
20
|
proxy_redirect off;
|
21
|
-
proxy_pass http://
|
21
|
+
proxy_pass http://unicorn_<%= @application %>;
|
22
22
|
}
|
23
23
|
|
24
24
|
error_page 500 502 503 504 /500.html;
|