simple-capistrano-unicorn 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/configs/unicorn.conf.rb +2 -2
- data/simple-capistrano-unicorn.gemspec +4 -2
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfc752bd0dd420421db86f02c08de8023f0c0a66
|
4
|
+
data.tar.gz: 2b5f4be30e1df3db34806b378f8b17e0535fbbe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd2bdb5ad9dd4ecb9bb2a06ecba403b367a623f25072da2e74d7d71a173b0c6f44b39472d342df2ee761e5096f8b1042bbc942e271388b6e51f734c5b9f5b0a3
|
7
|
+
data.tar.gz: 78fbb1dd407b25fbc86e282621cfd97e1ae36d8b3b48a2ed0fecdba41636deee31aa3947ac6ce3cbe5feccbcbf5320d4ac7ec79fce391860aecf801948f413c4
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ This gem is composed from the gems `capistrano-unicorn-methods` and `capistrano-
|
|
12
12
|
gem 'simple-capistrano-unicorn'
|
13
13
|
```
|
14
14
|
|
15
|
-
### 2. Require this gem
|
15
|
+
### 2. Require this gem
|
16
16
|
|
17
17
|
You should add this line to your `Capfile`:
|
18
18
|
|
@@ -32,7 +32,7 @@ after 'deploy', 'unicorn:restart'
|
|
32
32
|
|
33
33
|
Grab the sample Unicorn configuration here: https://github.com/kaspergrubbe/simple-capistrano-unicorn/blob/master/configs/unicorn.conf.rb
|
34
34
|
|
35
|
-
And place it here: `PROJECT_ROOT/config/unicorn.rb` change the `
|
35
|
+
And place it here: `PROJECT_ROOT/config/unicorn.rb` change the `app_dir` variable to suit your configuration.
|
36
36
|
|
37
37
|
## Usage
|
38
38
|
|
@@ -42,8 +42,8 @@ The gem gives you access to the following tasks:
|
|
42
42
|
|
43
43
|
* `unicorn:start` starts the Unicorn processes
|
44
44
|
* `unicorn:stop` stops the Unicorn processes
|
45
|
-
* `unicorn
|
46
|
-
* `unicorn
|
45
|
+
* `unicorn:restart` makes a seamless zero-downtime restart
|
46
|
+
* `unicorn:hard_restart` basically runs `unicorn:stop` followed with a `unicorn:start`
|
47
47
|
|
48
48
|
## Requirements
|
49
49
|
|
@@ -54,8 +54,8 @@ The gem gives you access to the following tasks:
|
|
54
54
|
|
55
55
|
You can customize the gems behavior by setting any (or all) of the following options within capistrano's configuration:
|
56
56
|
|
57
|
-
* `unicorn_pid` indicates the path for the pid file. Defaults to `"#{shared_path}/pids/unicorn.pid"`.
|
58
|
-
* `unicorn_old_pid` indicates the path for the old pid file, which Unicorn creates when forking a new master. Defaults to `#{shared_path}/pids/unicorn.pid.oldbin`.
|
57
|
+
* `unicorn_pid` indicates the path for the pid file. Defaults to `"#{shared_path}/tmp/pids/unicorn.pid"`.
|
58
|
+
* `unicorn_old_pid` indicates the path for the old pid file, which Unicorn creates when forking a new master. Defaults to `#{shared_path}/tmp/pids/unicorn.pid.oldbin`.
|
59
59
|
* `unicorn_config` the path to the unicorn config file. Defaults to `"#{current_path}/config/unicorn.rb"`.
|
60
60
|
* `unicorn_log` the path where unicorn places its STDERR-log. Defaults to `"#{shared_path}/log/unicorn.stderr.log"`.
|
61
61
|
* `rack_env` sets the environment that the server will run in. Defaults to `"production"`.
|
data/configs/unicorn.conf.rb
CHANGED
@@ -30,14 +30,14 @@ working_directory "#{app_dir}/current" # available in 0.94.0+
|
|
30
30
|
|
31
31
|
# listen on both a Unix domain socket and a TCP port,
|
32
32
|
# we use a shorter backlog for quicker failover when busy
|
33
|
-
listen "#{app_dir}/shared/
|
33
|
+
listen "#{app_dir}/shared/tmp/sockets/unicorn.sock", :backlog => 64
|
34
34
|
listen 8080, :tcp_nopush => true
|
35
35
|
|
36
36
|
# nuke workers after 30 seconds instead of 60 seconds (the default)
|
37
37
|
timeout 30
|
38
38
|
|
39
39
|
# feel free to point this anywhere accessible on the filesystem
|
40
|
-
pid "#{app_dir}/shared/pids/unicorn.pid"
|
40
|
+
pid "#{app_dir}/shared/tmp/pids/unicorn.pid"
|
41
41
|
|
42
42
|
# By default, the Unicorn logger will write to stderr.
|
43
43
|
# Additionally, ome applications/frameworks log to stderr or stdout,
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "simple-capistrano-unicorn"
|
6
|
-
gem.version = '1.0.
|
6
|
+
gem.version = '1.0.2'
|
7
7
|
gem.authors = ["Kasper Grubbe"]
|
8
8
|
gem.email = ["kaspergrubbe@gmail.com"]
|
9
9
|
gem.homepage = "http://github.com/kaspergrubbe/simple-capistrano-unicorn"
|
@@ -17,6 +17,8 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.
|
20
|
+
gem.add_development_dependency "rake", '~> 0'
|
21
|
+
|
22
|
+
gem.add_runtime_dependency "unicorn", '~> 5'
|
21
23
|
gem.add_runtime_dependency 'capistrano', '~> 3.4'
|
22
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-capistrano-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Grubbe
|
@@ -10,20 +10,34 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: unicorn
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: '5
|
33
|
+
version: '5'
|
20
34
|
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '5
|
40
|
+
version: '5'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: capistrano
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|