ms_deploy 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ms_deploy/recipes/nginx.rb +1 -1
- data/lib/ms_deploy/templates/vhost.erb +5 -0
- data/lib/ms_deploy/version.rb +1 -1
- metadata +19 -19
@@ -31,7 +31,7 @@ Capistrano::Configuration.instance.load do
|
|
31
31
|
task :install do
|
32
32
|
protocol = fetch(:protocol, nil).to_s
|
33
33
|
template_path = File.expand_path('../../templates/vhost.erb', __FILE__)
|
34
|
-
vars = {'application'=> application, 'project_root' => deploy_to + '/current', 'domain' => vhost_domain, 'stage' => stage, 'auth_basic_title' => fetch(:auth_basic_title, nil), 'auth_basic_password_file' => fetch(:auth_basic_password_file, nil), 'protocol' => 'http', 'nginx_cert_dir' => fetch(:nginx_cert_dir, '/etc/nginx/cert'), 'with_upstream_server' => true}
|
34
|
+
vars = {'application'=> application, 'project_root' => deploy_to + '/current', 'domain' => vhost_domain, 'stage' => stage, 'auth_basic_title' => fetch(:auth_basic_title, nil), 'auth_basic_password_file' => fetch(:auth_basic_password_file, nil), 'protocol' => 'http', 'nginx_cert_dir' => fetch(:nginx_cert_dir, '/etc/nginx/cert'), 'with_upstream_server' => true, 'with_file_expire_max' => fetch(:with_file_expire_max, true), 'optional_http_content' => fetch(:optional_nginx_server_http_content, ''), 'optional_https_content' => fetch(:optional_nginx_server_https_content, '')}
|
35
35
|
|
36
36
|
if protocol.nil? or protocol == 'http' or protocol == 'both'
|
37
37
|
config_path = "#{shared_path}/config/#{application}_vhost.conf"
|
@@ -52,10 +52,15 @@ server {
|
|
52
52
|
# }
|
53
53
|
#}
|
54
54
|
|
55
|
+
<% if with_file_expire_max %>
|
55
56
|
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
|
56
57
|
expires max;
|
57
58
|
break;
|
58
59
|
}
|
60
|
+
<% end %>
|
61
|
+
|
62
|
+
<%= optional_http_content if protocol == 'http' %>
|
63
|
+
<%= optional_https_content if protocol == 'https' %>
|
59
64
|
|
60
65
|
# Prefer to serve static files directly from nginx to avoid unnecessary
|
61
66
|
# data copies from the application server.
|
data/lib/ms_deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ms_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gemcutter
|
16
|
-
requirement: &
|
16
|
+
requirement: &89812210 !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: *
|
24
|
+
version_requirements: *89812210
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano
|
27
|
-
requirement: &
|
27
|
+
requirement: &89811760 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.12.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *89811760
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: capistrano-ext
|
38
|
-
requirement: &
|
38
|
+
requirement: &89811510 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.2.1
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *89811510
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: capistrano_colors
|
49
|
-
requirement: &
|
49
|
+
requirement: &89811270 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.5.5
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *89811270
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: capistrano-unicorn
|
60
|
-
requirement: &
|
60
|
+
requirement: &89811020 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 0.1.6
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *89811020
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capistrano-file_db
|
71
|
-
requirement: &
|
71
|
+
requirement: &89810790 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.1.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *89810790
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: capistrano-uptodate
|
82
|
-
requirement: &
|
82
|
+
requirement: &89810560 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.0.2
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *89810560
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rvm-capistrano
|
93
|
-
requirement: &
|
93
|
+
requirement: &89810330 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.2.2
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *89810330
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: erubis
|
104
|
-
requirement: &
|
104
|
+
requirement: &89810130 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *89810130
|
113
113
|
description: capistrano deployment task for my projects
|
114
114
|
email:
|
115
115
|
- michael.schiller@gmx.de
|