dcs-best-practices 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dcs-best-practices.gemspec +1 -0
- data/lib/capistrano/dcs/defaults.rb +0 -4
- data/lib/dcs_best_practices/version.rb +1 -1
- data/lib/generators/dcs/templates/deploy/Capfile.tt +1 -0
- metadata +21 -3
- data/lib/capistrano/dcs/sidekiq.rb +0 -3
- data/lib/capistrano/tasks/sidekiq.cap +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94702c111325b55e95b70abca84e5eb8b8dd3e5a785de59f44dca319108f9b60
|
4
|
+
data.tar.gz: 94ccec43f7d08bb9691104ac9078bec79444fb97001d62fb47f841f62acbe478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e6569ce7900907b9dcef60464728f100c393a09cf00dbfbd73f791288104579c1cc459ac3ef5e3126b94fd925eac8865f4beb46a7167e9cee7d70cfb7c8f5a
|
7
|
+
data.tar.gz: b5c15ce312e4225ae367eb68f9b6ab05ec72448bc8c931795224305df1d1545cecfc5b074b93680c66fcf29f8f6d6a218735d97539af8a478d4eceed8bfe6a94
|
data/dcs-best-practices.gemspec
CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency 'capistrano-rails', '~> 1.4', '>= 1.4.0'
|
37
37
|
spec.add_dependency 'capistrano-rails-console', '~> 2.3', '>= 2.3.0'
|
38
38
|
spec.add_dependency 'capistrano-rvm', '~> 0.1', '>= 0.1.0'
|
39
|
+
spec.add_dependency 'capistrano-sidekiq', '~> 1.0', '>= 1.0.0'
|
39
40
|
spec.add_dependency 'capistrano3-puma', '~> 4.0', '>= 4.0.0'
|
40
41
|
spec.add_dependency 'figaro', '~> 1.1', '>= 1.1.1'
|
41
42
|
spec.add_dependency 'puma', '~> 4.1', '>= 4.1.0'
|
@@ -30,10 +30,6 @@ namespace :load do
|
|
30
30
|
|
31
31
|
set :assets_roles, %i[web app db]
|
32
32
|
|
33
|
-
set :sidekiq_start_cmd, "cd #{fetch(:deploy_to)}/current; #{fetch(:bundle_cmd)} exec sidekiq " \
|
34
|
-
'--index 0 -C config/sidekiq.yml --environment production --daemon'
|
35
|
-
set :sidekiq_stop_cmd, "kill -QUIT `cat #{fetch(:sidekiq_pid)}`"
|
36
|
-
|
37
33
|
after 'deploy:publishing', 'puma:restart'
|
38
34
|
end
|
39
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dcs-best-practices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DarkWater
|
@@ -190,6 +190,26 @@ dependencies:
|
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0.1'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: capistrano-sidekiq
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 1.0.0
|
200
|
+
- - "~>"
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '1.0'
|
203
|
+
type: :runtime
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: 1.0.0
|
210
|
+
- - "~>"
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '1.0'
|
193
213
|
- !ruby/object:Gem::Dependency
|
194
214
|
name: capistrano3-puma
|
195
215
|
requirement: !ruby/object:Gem::Requirement
|
@@ -333,11 +353,9 @@ files:
|
|
333
353
|
- lib/capistrano/dcs/assets.rb
|
334
354
|
- lib/capistrano/dcs/defaults.rb
|
335
355
|
- lib/capistrano/dcs/remote.rb
|
336
|
-
- lib/capistrano/dcs/sidekiq.rb
|
337
356
|
- lib/capistrano/dcs/ssh.rb
|
338
357
|
- lib/capistrano/tasks/assets.cap
|
339
358
|
- lib/capistrano/tasks/remote.cap
|
340
|
-
- lib/capistrano/tasks/sidekiq.cap
|
341
359
|
- lib/capistrano/tasks/ssh.cap
|
342
360
|
- lib/dcs-best-pratices.rb
|
343
361
|
- lib/dcs_best_practices/version.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
namespace :sidekiq do
|
2
|
-
desc 'Sidekiq start'
|
3
|
-
task :start do
|
4
|
-
on roles(:app, :web) do
|
5
|
-
execute "#{fetch(:sidekiq_start_cmd)}"
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
desc 'Sidekiq Stop'
|
10
|
-
task :stop do
|
11
|
-
on roles(:app, :web) do
|
12
|
-
execute "#{fetch(:sidekiq_stop_cmd)}"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
desc 'Sidekiq restart'
|
17
|
-
task :restart do
|
18
|
-
on roles(:app, :web) do
|
19
|
-
execute "#{fetch(:sidekiq_stop_cmd)}; sleep 5; #{fetch(:sidekiq_start_cmd)}"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|