capistrano-simple-unicorn 1.1.0 → 1.1.1
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/lib/capistrano/simple_unicorn/version.rb +1 -1
- data/lib/capistrano/tasks/unicorn.rake +9 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66d57a5d0443dbfb99e562ac9748766ebc2da08e
|
|
4
|
+
data.tar.gz: f476b643217620a941e0d1ccca0bef1d21bc9219
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9250ee916e9e2e92d5cbc9cfa448012695c605737e42a7d9144d13679c462383c161f9bafcad67079fd7a404dcbbb7f1200aba7480b8c26565a1b8549ef40ad
|
|
7
|
+
data.tar.gz: eda38d917f869e63464d6fb387aeee7beb0d93983c1f2a63a28c488099f65862694f230c38633039587ed6e77bc82e8d4998b602b57129ea80227685ef7f8d3b
|
|
@@ -23,16 +23,15 @@ namespace :load do
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
namespace :unicorn do
|
|
26
|
-
desc 'Start Unicorn'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
end
|
|
26
|
+
desc 'Start Unicorn'
|
|
27
|
+
task :start do
|
|
28
|
+
on roles(fetch(:unicorn_roles)) do
|
|
29
|
+
within current_path do
|
|
30
|
+
if test("[ -e #{fetch(:unicorn_pid)} ] && kill -0 #{pid}")
|
|
31
|
+
info 'unicorn is running...'
|
|
32
|
+
else
|
|
33
|
+
with rails_env: fetch(:rails_env) do
|
|
34
|
+
execute :bundle, 'exec unicorn', '-c', fetch(:unicorn_config_path), '-E', fetch(:unicorn_env), '-D', fetch(:unicorn_options)
|
|
36
35
|
end
|
|
37
36
|
end
|
|
38
37
|
end
|