capistrano-unicorn 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +7 -5
- data/lib/capistrano-unicorn/capistrano_integration.rb +4 -2
- data/lib/capistrano-unicorn/version.rb +1 -1
- metadata +6 -17
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MTA1OWRiNzRiNDRjODYzZWE1OTRmMWVjY2IyOGU3NTIzNTZhMTJiMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YjY5ODgwOWRjNGJmNWZlODk0OTRkMjY5YjgwOTdmOTcwMjc3ZTUxMg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTI1OWMxYjgxOWE1MDE5ODIwZDNlYTFjYmZmYzc3MDRiNzYwNzhjOTcyZDk5
|
10
|
+
ZTA2YWYyMDI4Y2I3ODJjYjFiZDE0YjIxZmViMWI1OGM3NDQwZTljYjdlODVm
|
11
|
+
ODFhM2NjNzRjM2QwZjRlY2MwZGE5MTY5ZDlmNDQ2ZGI0NmI3ZGU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZWVkZmM1ZGMwYjBlNDZhZjVmMjliY2EyMTRlMzY3MTU3ZDVkNTMyZjVmMDNm
|
14
|
+
NjA3MjliNjgxMmJiMzcwZTQzMWM5NjVkOWQxMTlkNzgxYmZhNTdiNzc2Mzlk
|
15
|
+
NTYwOTBiNDhmMjY4Y2ZhNjRlMWE1MmE3OTdiOTYwNzlkMDU5M2M=
|
data/README.md
CHANGED
@@ -59,11 +59,13 @@ cap unicorn:reload
|
|
59
59
|
|
60
60
|
You can modify any of the following options in your `deploy.rb` config.
|
61
61
|
|
62
|
-
- `unicorn_env`
|
63
|
-
- `unicorn_pid`
|
64
|
-
- `unicorn_bin`
|
65
|
-
- `unicorn_bundle`
|
66
|
-
- `unicorn_user`
|
62
|
+
- `unicorn_env` - Set unicorn environment. Default to `rails_env` variable.
|
63
|
+
- `unicorn_pid` - Set unicorn PID file path. Default to `current_path/tmp/pids/unicorn.pid`
|
64
|
+
- `unicorn_bin` - Set unicorn executable file. Default to `unicorn`.
|
65
|
+
- `unicorn_bundle` - Set bundler command for unicorn. Default to `bundle`.
|
66
|
+
- `unicorn_user` - Launch unicorn master as the specified user. Default to `user` variable.
|
67
|
+
- `unicorn_config_path` - Set the directory where unicorn config files reside. Default to `current_path/config`.
|
68
|
+
- `unicorn_config_filename` - Set the filename of the unicorn config file. Not used in multistage installations. Default to `unicorn.rb`.
|
67
69
|
|
68
70
|
### Multistage
|
69
71
|
|
@@ -24,6 +24,8 @@ module CapistranoUnicorn
|
|
24
24
|
_cset(:unicorn_bundle) { fetch(:bundle_cmd) rescue 'bundle' }
|
25
25
|
_cset(:unicorn_restart_sleep_time) { 2 }
|
26
26
|
_cset(:unicorn_user) { nil }
|
27
|
+
_cset(:unicorn_config_path) { "#{fetch(:current_path)}/config" }
|
28
|
+
_cset(:unicorn_config_filename) { "unicorn.rb" }
|
27
29
|
end
|
28
30
|
|
29
31
|
# Check if a remote process exists using its pid file
|
@@ -93,8 +95,8 @@ module CapistranoUnicorn
|
|
93
95
|
# Start the Unicorn server
|
94
96
|
#
|
95
97
|
def start_unicorn
|
96
|
-
primary_config_path = "#{
|
97
|
-
secondary_config_path = "#{
|
98
|
+
primary_config_path = "#{unicorn_config_path}/#{unicorn_config_filename}"
|
99
|
+
secondary_config_path = "#{unicorn_config_path}/unicorn/#{unicorn_env}.rb"
|
98
100
|
|
99
101
|
script = <<-END
|
100
102
|
if [ -e #{primary_config_path} ]; then
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dan Sosedoff
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: capistrano
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -61,32 +56,26 @@ files:
|
|
61
56
|
- lib/capistrano-unicorn/version.rb
|
62
57
|
homepage: https://github.com/sosedoff/capistrano-unicorn
|
63
58
|
licenses: []
|
59
|
+
metadata: {}
|
64
60
|
post_install_message:
|
65
61
|
rdoc_options: []
|
66
62
|
require_paths:
|
67
63
|
- lib
|
68
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
65
|
requirements:
|
71
66
|
- - ! '>='
|
72
67
|
- !ruby/object:Gem::Version
|
73
68
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: 4059242988459610769
|
77
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
70
|
requirements:
|
80
71
|
- - ! '>='
|
81
72
|
- !ruby/object:Gem::Version
|
82
73
|
version: '0'
|
83
|
-
segments:
|
84
|
-
- 0
|
85
|
-
hash: 4059242988459610769
|
86
74
|
requirements: []
|
87
75
|
rubyforge_project:
|
88
|
-
rubygems_version:
|
76
|
+
rubygems_version: 2.0.3
|
89
77
|
signing_key:
|
90
|
-
specification_version:
|
78
|
+
specification_version: 4
|
91
79
|
summary: Unicorn integration for Capistrano
|
92
80
|
test_files: []
|
81
|
+
has_rdoc:
|