mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Changing delayed_job executing script because I think rake jobs:work is crashing docker
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -55,6 +55,7 @@ gem 'delayed_job_active_record'
|
||||
gem 'puma'
|
||||
gem 'passenger'
|
||||
gem 'tzinfo-data'
|
||||
gem 'daemons'
|
||||
|
||||
group :development do
|
||||
gem 'rubocop'
|
||||
|
||||
@@ -43,7 +43,7 @@ services:
|
||||
- ./prod.env
|
||||
healthcheck:
|
||||
test: kill -0 1
|
||||
command: bundle exec rake jobs:work RAILS_ENV=production
|
||||
command: bundle exec bin/delayed_job -n 1 run
|
||||
|
||||
|
||||
memcached:
|
||||
|
||||
@@ -13,6 +13,7 @@ services:
|
||||
context: ../
|
||||
dockerfile: ./deploy/rails-prod-Dockerfile
|
||||
environment:
|
||||
- RAILS_ENV=production
|
||||
- WRESTLINGDEV_DB_NAME=wrestlingtourney
|
||||
- WRESTLINGDEV_DB_USR=root
|
||||
- WRESTLINGDEV_DB_PWD=password
|
||||
@@ -64,6 +65,7 @@ services:
|
||||
worker:
|
||||
image: wrestlingdev
|
||||
environment:
|
||||
- RAILS_ENV=production
|
||||
- WRESTLINGDEV_DB_NAME=wrestlingtourney
|
||||
- WRESTLINGDEV_DB_USR=root
|
||||
- WRESTLINGDEV_DB_PWD=password
|
||||
@@ -80,7 +82,7 @@ services:
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: kill -0 1
|
||||
command: bundle exec rake jobs:work RAILS_ENV=production
|
||||
command: bundle exec bin/delayed_job -n 1 run
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user