provizioning 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Provizioning
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -1,15 +1,15 @@
1
- upstream <%= name %> {
2
- server unix:/tmp/<%= name %>.sock fail_timeout=0;
1
+ upstream <%= domain_name.sub(".", "_") %> {
2
+ server unix:/tmp/<%= domain_name %>.sock fail_timeout=0;
3
3
  }
4
4
 
5
5
  server {
6
6
  listen 80;
7
7
  client_max_body_size 4G;
8
- server_name <%= domain_name %>;
8
+ server_name <%= domain_name %> www.<%= domain_name %>;
9
9
 
10
10
  keepalive_timeout 5;
11
11
 
12
- root <%= deploy_to %>;
12
+ root <%= deploy_to %>/current/public;
13
13
 
14
14
  location / {
15
15
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -17,13 +17,13 @@ server {
17
17
  proxy_redirect off;
18
18
 
19
19
  if (!-f $request_filename) {
20
- proxy_pass http://<%= name %>;
20
+ proxy_pass http://<%= domain_name.sub(".", "_") %>;
21
21
  break;
22
22
  }
23
23
  }
24
24
 
25
25
  error_page 500 502 503 504 /500.html;
26
26
  location = /500.html {
27
- root <%= deploy_to %>;
27
+ root <%= deploy_to %>/current/public;
28
28
  }
29
29
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provizioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &2160476680 !ruby/object:Gem::Requirement
16
+ requirement: &2157234620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160476680
24
+ version_requirements: *2157234620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano-ext
27
- requirement: &2160475240 !ruby/object:Gem::Requirement
27
+ requirement: &2157233100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2160475240
35
+ version_requirements: *2157233100
36
36
  description: Server provisioning tools, recipes and templates based on Sprinkle
37
37
  email:
38
38
  - victor.castell@season.es