capistrano-simple-unicorn 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 173d6e2cc08eb091bd7de0caba182a0263e0e1bc
4
- data.tar.gz: 594ce78db0f933fca210e6c58d3b934ecf76d9c7
3
+ metadata.gz: 2e5d3ec155bd77350ca05ec615dcfd0fec209d8c
4
+ data.tar.gz: d88228d8dceca476a34d89a353518e6db9f64689
5
5
  SHA512:
6
- metadata.gz: 52787d263bbbc18ddebd5a437acfd3f55d19a87f1d6d445163e9003ceeff9fce2a901fb46456041b9138516d0a7378bf13f610cd171718304c2381b24b28bba5
7
- data.tar.gz: f1e5e91d90678137041af9f2608f54a3f3ed6adf260c8acf305b01efc1604c9ad528f1a7a24367ae9ded03f989fa756224fb445a9afbb2d001818c0699f17630
6
+ metadata.gz: 201bdd40579355c5282e63f9b4f0366e9dac270ec21a88724fc67a732c20c40ff7506f98e5133fc0228183563de15a978821c0c0911ee49140134c906ffd3372
7
+ data.tar.gz: fc3d1d5fedb225f8a6f33a1d2b7dd5ed700e5e94c47af261ce8bf97d83788b3741e2a9186a4289920e29ebc6705d2c4a62baf4fdc9072e30e831e26820dafd0d
data/README.md CHANGED
@@ -54,3 +54,11 @@ Example
54
54
  set :unicorn_worker_processes, 4
55
55
  set :unicorn_timeout, 60
56
56
  ```
57
+
58
+ ## scrip remote
59
+ * start|stop|restart unicron, run:
60
+ ```
61
+ $ cap production unicorn:start
62
+ $ cap production unicorn:stop
63
+ $ cap production unicorn:restart
64
+ ```
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module SimpleUnicorn
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
5
5
  end
@@ -42,7 +42,7 @@ namespace :unicorn do
42
42
  end
43
43
  end
44
44
 
45
- %w[start stop restart reload].each do |action|
45
+ %w[start stop restart upgrade].each do |action|
46
46
  desc "#{action} unicorn"
47
47
  task action do
48
48
  on roles :app do
@@ -52,7 +52,7 @@ namespace :unicorn do
52
52
  end
53
53
 
54
54
  desc 'restart unicorn'
55
- task 'restart' do
55
+ task 'reload' do
56
56
  on roles :app do
57
57
  invoke "unicorn:unicorn_init" unless file_exists?(unicorn_initd_file)
58
58
  invoke 'unicorn:setup_unicorn_config'
@@ -66,5 +66,5 @@ namespace :unicorn do
66
66
  end
67
67
 
68
68
  namespace :deploy do
69
- after :publishing, 'unicorn:restart'
69
+ after :publishing, 'unicorn:reload'
70
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-simple-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - truongkma