mina-unicorn 1.1.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/lib/mina/unicorn/tasks.rb +6 -7
- data/lib/mina/unicorn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b8b82a3379104e1c0f0ffbfbd88ca19b7801b5
|
4
|
+
data.tar.gz: 0dc6471f1ead8ff85fc5f5961d8cb04e60fd7fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da991aa68d64807098d4b570fa767a36b2fee388542685ec6c82a7bc10c9ad130bbaeba0344d83ce2a1bfa12fe33c705d8700f7894aaac0c1711739003a90e5d
|
7
|
+
data.tar.gz: 861b8834c13bd7df03b462a11b76e5f2d4ca8df8471aaf7f60e0b4402dc6c3ce68fb40ef8a01d86d75cc9332645e97bfa8fcc8f97b292b6897b71a2ccada40c6
|
data/lib/mina/unicorn/tasks.rb
CHANGED
@@ -5,31 +5,30 @@ require "mina/unicorn/utility"
|
|
5
5
|
namespace :unicorn do
|
6
6
|
include Mina::Unicorn::Utility
|
7
7
|
|
8
|
-
|
9
|
-
set :unicorn_env, -> { fetch(:rails_env) == "development" ? "development" : "deployment" }
|
8
|
+
set :unicorn_env, -> { fetch(:rails_env) || fetch(:rack_env) || "deployment" }
|
10
9
|
set :unicorn_config, -> { "#{fetch(:current_path)}/config/unicorn.rb" }
|
11
10
|
set :unicorn_pid, -> { "#{fetch(:current_path)}/tmp/pids/unicorn.pid" }
|
12
|
-
set :unicorn_cmd, -> { "#{fetch(:bundle_prefix)} unicorn" }
|
11
|
+
set :unicorn_cmd, -> { "#{fetch(:bundle_prefix, "#{fetch(:bundle_bin)} exec")} unicorn" }
|
13
12
|
set :unicorn_restart_sleep_time, -> { 2 }
|
14
13
|
set :bundle_gemfile, -> { "#{fetch(:current_path)}/Gemfile" }
|
15
14
|
|
16
15
|
desc "Start Unicorn master process"
|
17
|
-
task start: :
|
16
|
+
task start: :remote_environment do
|
18
17
|
command start_unicorn
|
19
18
|
end
|
20
19
|
|
21
20
|
desc "Stop Unicorn"
|
22
|
-
task stop: :
|
21
|
+
task stop: :remote_environment do
|
23
22
|
command kill_unicorn("QUIT")
|
24
23
|
end
|
25
24
|
|
26
25
|
desc "Immediately shutdown Unicorn"
|
27
|
-
task shutdown: :
|
26
|
+
task shutdown: :remote_environment do
|
28
27
|
command kill_unicorn("TERM")
|
29
28
|
end
|
30
29
|
|
31
30
|
desc "Restart unicorn service"
|
32
|
-
task restart: :
|
31
|
+
task restart: :remote_environment do
|
33
32
|
command restart_unicorn
|
34
33
|
end
|
35
34
|
end
|
data/lib/mina/unicorn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tab
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mina
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.6.13
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Unicorn tasks for Mina
|