capistrano3-nginx 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/capistrano3-nginx.gemspec +1 -1
- data/lib/capistrano/tasks/nginx.rake +7 -7
- 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: 48fb1cfbc6bc761fe0356000a5da22aa68c54725
|
4
|
+
data.tar.gz: c6c87bdc8e50ba85da819389f96f5ee48c1ce893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa8d743d80fcad64805f16c7b68bcdeeafdd733e38293e2ddf48b63d842708169db879c6f2c407fc99f6622de3f1a888ad8ea7d6ba02ea04386bb88960bef32
|
7
|
+
data.tar.gz: 9b4333a7e1b18ee1cc33dabdb9e0eee32b028c7cab79214c60aded9e378ed2415c9aec25944b9d700a5eee04bf0e0e08401452a4915ae16cffee5093a1b4bf02
|
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', '~> 1.0'
|
10
10
|
gem 'capistrano'
|
11
11
|
|
12
12
|
And then execute:
|
@@ -15,7 +15,7 @@ And then execute:
|
|
15
15
|
|
16
16
|
Or install it yourself as:
|
17
17
|
|
18
|
-
$ gem install
|
18
|
+
$ gem install capistrano3-nginx
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
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 = '
|
7
|
+
spec.version = '2.0.0'
|
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}
|
@@ -5,7 +5,7 @@ namespace :load do
|
|
5
5
|
set :nginx_root_path, -> { "/etc/nginx" }
|
6
6
|
set :nginx_sites_enabled, -> { "sites-enabled" }
|
7
7
|
set :nginx_sites_available, -> { "sites-available" }
|
8
|
-
set :nginx_template, -> {
|
8
|
+
set :nginx_template, -> { :default }
|
9
9
|
set :nginx_use_ssl, -> { false }
|
10
10
|
set :app_server, -> { true }
|
11
11
|
end
|
@@ -42,13 +42,13 @@ namespace :nginx do
|
|
42
42
|
on release_roles fetch(:nginx_roles) do
|
43
43
|
within fetch(:sites_available) do
|
44
44
|
config_file = fetch(:nginx_template)
|
45
|
-
|
46
|
-
|
45
|
+
if config_file == :default
|
46
|
+
config_file = File.expand_path('../../../../templates/nginx.conf.erb', __FILE__)
|
47
47
|
end
|
48
48
|
config = ERB.new(File.read(config_file)).result(binding)
|
49
49
|
upload! StringIO.new(config), '/tmp/nginx.conf'
|
50
50
|
|
51
|
-
execute :mv, '/tmp/nginx.conf', fetch(:application)
|
51
|
+
execute :sudo, :mv, '/tmp/nginx.conf', fetch(:application)
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -58,7 +58,7 @@ namespace :nginx do
|
|
58
58
|
on release_roles fetch(:nginx_roles) do
|
59
59
|
if test "! [ -h #{fetch(:enabled_application)} ]"
|
60
60
|
within fetch(:sites_enabled) do
|
61
|
-
execute :ln, '-nfs', fetch(:available_application), fetch(:enabled_application)
|
61
|
+
execute :sudo, :ln, '-nfs', fetch(:available_application), fetch(:enabled_application)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
@@ -69,7 +69,7 @@ namespace :nginx do
|
|
69
69
|
on release_roles fetch(:nginx_roles) do
|
70
70
|
if test "[ -f #{fetch(:enabled_application)} ]"
|
71
71
|
within fetch(:sites_enabled) do
|
72
|
-
execute :rm, '-f', fetch(:application)
|
72
|
+
execute :sudo, :rm, '-f', fetch(:application)
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
@@ -80,7 +80,7 @@ namespace :nginx do
|
|
80
80
|
on release_roles fetch(:nginx_roles) do
|
81
81
|
if test "[ -f #{fetch(:available_application)} ]"
|
82
82
|
within fetch(:sites_available) do
|
83
|
-
execute :rm, fetch(:application)
|
83
|
+
execute :sudo, :rm, fetch(:application)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
end
|
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:
|
4
|
+
version: 2.0.0
|
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-04-28 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: []
|