Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
capistrano-sneakers
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
capistrano-sneakers
Commits
08d267cb
Commit
08d267cb
authored
Jul 24, 2017
by
Karl Kloppenborg
Committed by
GitHub
Jul 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from Tensho/reenable-stop-rake-task
Make sneakers:stop task perpetually callable
parents
63514ab5
3548cd1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lib/capistrano/tasks/sneakers.rb
+3
-2
No files found.
lib/capistrano/tasks/sneakers.rb
View file @
08d267cb
...
...
@@ -97,12 +97,12 @@ namespace :sneakers do
raise
"[ set :workers, ['worker1', 'workerN'] ] not configured properly, please configure the workers you wish to use"
if
fetch
(
:sneakers_workers
).
nil?
or
fetch
(
:sneakers_workers
)
==
false
or
!
fetch
(
:sneakers_workers
).
kind_of?
Array
workers
=
fetch
(
:sneakers_workers
).
compact
.
join
(
','
)
#run "cmd", env: { 'WORKERS' => workers } #export this to environmental variable
info
"Starting the sneakers processes"
#workers.each do |worker|
with
rails_env:
fetch
(
:sneakers_env
),
workers:
workers
do
with
rails_env:
fetch
(
:sneakers_env
),
workers:
workers
do
rake
'sneakers:run'
end
#execute :bundle, :exec, :sneakers, args.compact.join(' ')
...
...
@@ -189,6 +189,7 @@ namespace :sneakers do
end
end
end
Rake
::
Task
[
"sneakers:stop"
].
reenable
end
desc
'Start sneakers'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment