deploify 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/deploify.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'deploify/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "deploify"
8
8
  gem.version = Deploify::VERSION
9
- gem.authors = ["Richard R\314\214i\314\201man"]
9
+ gem.authors = ["Richard Riman"]
10
10
  gem.email = ["riman.richard@gmail.com"]
11
11
  gem.description = "deploify - capistrano based and deprec inspired deploy solution served as a gem"
12
12
  gem.summary = "capistrano based and deprec inspired deploy gem"
@@ -36,6 +36,10 @@ server {
36
36
  auth_basic "Limited access";
37
37
  auth_basic_user_file <%= "#{deploy_to}/nginx/.htaccess" %>;
38
38
  <% end -%>
39
+ try_files $uri @upstream;
40
+ }
41
+
42
+ location @upstream {
39
43
  proxy_pass http://<%= nginx_upstream_name %>;
40
44
  proxy_redirect off;
41
45
  proxy_set_header Host $host;
@@ -57,23 +61,14 @@ server {
57
61
  # set Expire header on assets: see http://developer.yahoo.com/performance/rules.html#expires
58
62
  location ~ ^/(images|javascripts|stylesheets)/ {
59
63
  expires max;
60
- error_page 404 = @fallback;
64
+ error_page 404 = @upstream;
61
65
  }
62
66
 
63
67
  location ~ ^/assets/ {
64
68
  expires max;
65
69
  add_header Cache-Control public;
66
70
  add_header ETag "";
67
- error_page 404 = @fallback;
68
- }
69
-
70
- location @fallback {
71
- proxy_pass http://<%= nginx_upstream_name %>;
72
- proxy_redirect off;
73
- proxy_set_header Host $host;
74
- proxy_set_header X-Real-IP $remote_addr;
75
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
76
- proxy_set_header X-Forwarded-Proto https;
71
+ error_page 404 = @upstream;
77
72
  }
78
73
 
79
74
  error_page 404 /404.html;
@@ -23,6 +23,10 @@ server {
23
23
  auth_basic "Limited access";
24
24
  auth_basic_user_file <%= "#{deploy_to}/nginx/.htaccess" %>;
25
25
  <% end -%>
26
+ try_files $uri @upstream;
27
+ }
28
+
29
+ location @upstream {
26
30
  proxy_pass http://<%= nginx_upstream_name %>;
27
31
  proxy_redirect off;
28
32
  proxy_set_header Host $host;
@@ -44,23 +48,14 @@ server {
44
48
  # set Expire header on assets: see http://developer.yahoo.com/performance/rules.html#expires
45
49
  location ~ ^/(images|javascripts|stylesheets)/ {
46
50
  expires max;
47
- error_page 404 = @fallback;
51
+ error_page 404 = @upstream;
48
52
  }
49
53
 
50
54
  location ~ ^/assets/ {
51
55
  expires max;
52
56
  add_header Cache-Control public;
53
57
  add_header ETag "";
54
- error_page 404 = @fallback;
55
- }
56
-
57
- location @fallback {
58
- proxy_pass http://<%= nginx_upstream_name %>;
59
- proxy_redirect off;
60
- proxy_set_header Host $host;
61
- proxy_set_header X-Real-IP $remote_addr;
62
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
63
- proxy_set_header X-Forwarded-Proto http;
58
+ error_page 404 = @upstream;
64
59
  }
65
60
 
66
61
  error_page 404 /404.html;
@@ -23,6 +23,10 @@ server {
23
23
  auth_basic "Limited access";
24
24
  auth_basic_user_file <%= "#{deploy_to}/nginx/.htaccess" %>;
25
25
  <% end -%>
26
+ try_files $uri @upstream;
27
+ }
28
+
29
+ location @upstream {
26
30
  proxy_pass http://<%= nginx_upstream_name %>;
27
31
  proxy_redirect off;
28
32
  proxy_set_header Host $host;
@@ -44,23 +48,14 @@ server {
44
48
  # set Expire header on assets: see http://developer.yahoo.com/performance/rules.html#expires
45
49
  location ~ ^/(images|javascripts|stylesheets)/ {
46
50
  expires max;
47
- error_page 404 = @fallback;
51
+ error_page 404 = @upstream;
48
52
  }
49
53
 
50
54
  location ~ ^/assets/ {
51
55
  expires max;
52
56
  add_header Cache-Control public;
53
57
  add_header ETag "";
54
- error_page 404 = @fallback;
55
- }
56
-
57
- location @fallback {
58
- proxy_pass http://<%= nginx_upstream_name %>;
59
- proxy_redirect off;
60
- proxy_set_header Host $host;
61
- proxy_set_header X-Real-IP $remote_addr;
62
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
63
- proxy_set_header X-Forwarded-Proto http;
58
+ error_page 404 = @upstream;
64
59
  }
65
60
 
66
61
  error_page 404 /404.html;
@@ -95,6 +90,10 @@ server {
95
90
  auth_basic "Limited access";
96
91
  auth_basic_user_file <%= "#{deploy_to}/nginx/.htaccess" %>;
97
92
  <% end -%>
93
+ try_files $uri @upstream;
94
+ }
95
+
96
+ location @upstream {
98
97
  proxy_pass http://<%= nginx_upstream_name %>;
99
98
  proxy_redirect off;
100
99
  proxy_set_header Host $host;
@@ -116,16 +115,14 @@ server {
116
115
  # set Expire header on assets: see http://developer.yahoo.com/performance/rules.html#expires
117
116
  location ~ ^/(images|javascripts|stylesheets)/ {
118
117
  expires max;
119
- error_page 404 = @fallback;
118
+ error_page 404 = @upstream;
120
119
  }
121
120
 
122
- location @fallback {
123
- proxy_pass http://<%= nginx_upstream_name %>;
124
- proxy_redirect off;
125
- proxy_set_header Host $host;
126
- proxy_set_header X-Real-IP $remote_addr;
127
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
128
- proxy_set_header X-Forwarded-Proto https;
121
+ location ~ ^/assets/ {
122
+ expires max;
123
+ add_header Cache-Control public;
124
+ add_header ETag "";
125
+ error_page 404 = @upstream;
129
126
  }
130
127
 
131
128
  error_page 404 /404.html;
@@ -1,7 +1,7 @@
1
1
  module Deploify
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- PATCH = 7
4
+ PATCH = 8
5
5
  BUILD = nil
6
6
 
7
7
  if BUILD.nil?
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
- - "Richard R\xCC\x8Ci\xCC\x81man"
13
+ - Richard Riman
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []