capistrano-supervisor 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +13 -4
- data/capistrano-supervisor.gemspec +1 -1
- data/lib/capistrano/tasks/supervisor.rake +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 559d3f744303fd9d7b7f55b20e72784666244212
|
4
|
+
data.tar.gz: 6d2ae9d784b5edfe75cc8ec98d16248d4bc25865
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c1bb24701d466f85842e7b1817e79da4f7160ac529bc3924d271224a4eb95a848f4080cce6c525b72eeb3dfe7047b845030748ec0e18ec04276bc465988456f
|
7
|
+
data.tar.gz: b45f5ffe32720ace837275e8f6b8b794454faa31d9bc4e6cbcda2af47e1e01e05f184906f7628931f7b5d7aeb715d152ed7f4208960262f99d325cf51948d142
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-supervisor (
|
4
|
+
capistrano-supervisor (1.0.0)
|
5
5
|
capistrano (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -11,11 +11,11 @@ GEM
|
|
11
11
|
i18n
|
12
12
|
rake (>= 10.0.0)
|
13
13
|
sshkit (~> 1.3)
|
14
|
-
colorize (0.7.
|
14
|
+
colorize (0.7.7)
|
15
15
|
i18n (0.7.0)
|
16
16
|
net-scp (1.2.1)
|
17
17
|
net-ssh (>= 2.6.5)
|
18
|
-
net-ssh (
|
18
|
+
net-ssh (3.0.1)
|
19
19
|
rake (10.4.2)
|
20
20
|
sshkit (1.7.1)
|
21
21
|
colorize (>= 0.7.0)
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
supervisord support for Capistrano 3.x
|
4
4
|
|
5
|
+
Makes it possible to reload/restart supervisord during deploy
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -27,13 +29,20 @@ Require in Capfile to use the default task:
|
|
27
29
|
require 'capistrano/supervisor'
|
28
30
|
```
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
+
Configure in deploy.rb to execute one of the tasks:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
after 'deploy:published', 'supervisord:reload'
|
36
|
+
after 'deploy:published', 'supervisord:restart'
|
37
|
+
```
|
38
|
+
|
39
|
+
You can also run it in isolation: `cap production supervisord:reload` or `cap production supervisord:restart`
|
32
40
|
|
33
|
-
|
41
|
+
Configurable options:
|
34
42
|
|
35
43
|
```ruby
|
36
|
-
set :supervisord_reload_roles,
|
44
|
+
set :supervisord_reload_roles, :app
|
45
|
+
set :supervisord_restart_roles, :app
|
37
46
|
```
|
38
47
|
|
39
48
|
## Development
|
@@ -5,12 +5,17 @@ namespace :supervisord do
|
|
5
5
|
execute "supervisorctl reload"
|
6
6
|
end
|
7
7
|
end
|
8
|
-
|
9
|
-
|
8
|
+
desc 'Restarts supervisord'
|
9
|
+
task :restart do
|
10
|
+
on roles fetch(:supervisord_restart_roles) do
|
11
|
+
execute "supervisorctl restart"
|
12
|
+
end
|
13
|
+
end
|
10
14
|
end
|
11
15
|
|
12
16
|
namespace :load do
|
13
17
|
task :defaults do
|
14
18
|
set :supervisord_reload_roles, :app
|
19
|
+
set :supervisord_restart_roles, :app
|
15
20
|
end
|
16
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-supervisor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emil Kilhage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|