capistrano3-nginx 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -3
- data/capistrano3-nginx.gemspec +1 -1
- data/lib/capistrano/tasks/nginx.rake +1 -0
- data/templates/nginx.conf.erb +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39d6a15b4f7b0023807b6c9924d0ecc3a74ea28d
|
4
|
+
data.tar.gz: ab02b0e917aa042a113888dddb947a55d6ce9ce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48b67e2caa72c0a94bc13b80cfa474bd7b05e7681927d56f7372cb69863342b264e538f402efa45541d6119aad5ebbd75065fa24c7e05bcd8b7d147a15f0b7ac
|
7
|
+
data.tar.gz: 933f964e789260dc1b1e9ac47c4e3d070d2746bcd2e7e803adae1765463401fc930dc1c81b19352d68522f73c6cb44aa78478bd01b8c564e53cb53de41d8f834
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Nginx support for Capistrano 3.x
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem 'capistrano3-nginx', '~>
|
9
|
+
gem 'capistrano3-nginx', '~> 2.0'
|
10
10
|
gem 'capistrano'
|
11
11
|
|
12
12
|
And then execute:
|
@@ -57,6 +57,10 @@ set :nginx_log_path, "#{shared_path}/log"
|
|
57
57
|
# default value: "/etc/nginx"
|
58
58
|
set :nginx_root_path, "/etc/nginx"
|
59
59
|
|
60
|
+
# Path where to look for static files
|
61
|
+
# default value: "public"
|
62
|
+
set :nginx_root_path, "my_static_folder"
|
63
|
+
|
60
64
|
# Path where nginx available site are stored
|
61
65
|
# default value: "sites-available"
|
62
66
|
set :nginx_sites_available, "sites-available"
|
@@ -66,8 +70,10 @@ set :nginx_sites_available, "sites-available"
|
|
66
70
|
set :nginx_sites_enabled, "sites-enabled"
|
67
71
|
|
68
72
|
# Path to look for custom config template
|
69
|
-
# default
|
70
|
-
|
73
|
+
# `:default` will use the bundled nginx template
|
74
|
+
# default value: :default
|
75
|
+
set :nginx_template, "#{fetch(:stage_config_path)}/#{stage}/nginx.conf.erb"
|
76
|
+
set :nginx_tempalte, :default
|
71
77
|
|
72
78
|
# Use ssl on port 443 to serve on https. Every request to por 80
|
73
79
|
# will be rewritten to 443
|
data/capistrano3-nginx.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'capistrano3-nginx'
|
7
|
-
spec.version = '2.0.
|
7
|
+
spec.version = '2.0.1'
|
8
8
|
spec.authors = ['Juan Ignacio Donoso']
|
9
9
|
spec.email = ['jidonoso@gmail.com']
|
10
10
|
spec.description = %q{Adds suuport to nginx for Capistrano 3.x}
|
@@ -3,6 +3,7 @@ namespace :load do
|
|
3
3
|
set :nginx_roles, -> { :web }
|
4
4
|
set :nginx_log_path, -> { "#{shared_path}/log" }
|
5
5
|
set :nginx_root_path, -> { "/etc/nginx" }
|
6
|
+
set :nginx_static_dir, -> { "public" }
|
6
7
|
set :nginx_sites_enabled, -> { "sites-enabled" }
|
7
8
|
set :nginx_sites_available, -> { "sites-available" }
|
8
9
|
set :nginx_template, -> { :default }
|
data/templates/nginx.conf.erb
CHANGED
@@ -30,16 +30,16 @@ server {
|
|
30
30
|
<% end %>
|
31
31
|
|
32
32
|
server_name <%= fetch(:nginx_domains) %>;
|
33
|
-
root <%= fetch(:deploy_to) %>/current/<%= fetch(:
|
33
|
+
root <%= fetch(:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>;
|
34
34
|
|
35
35
|
access_log <%= fetch(:nginx_log_path) %>/nginx-access.log;
|
36
36
|
error_log <%= fetch(:nginx_log_path) %>/nginx-error.log;
|
37
37
|
|
38
38
|
error_page 404 /404.html;
|
39
|
-
location /404.html { root <%= fetch(:deploy_to) %>/current/<%= fetch(:
|
39
|
+
location /404.html { root <%= fetch(:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>; }
|
40
40
|
|
41
41
|
error_page 500 /500.html;
|
42
|
-
location /500.html { root <%= fetch (:deploy_to) %>/current/<%= fetch(:
|
42
|
+
location /500.html { root <%= fetch (:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>; }
|
43
43
|
|
44
44
|
client_max_body_size 4G;
|
45
45
|
keepalive_timeout 10;
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-nginx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Adds suuport to nginx for Capistrano 3.x
|
@@ -65,12 +65,12 @@ require_paths:
|
|
65
65
|
- lib
|
66
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|