1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00

Changing delayed_job executing script because I think rake jobs:work is crashing docker

This commit is contained in:
2018-07-31 14:51:28 +00:00
parent ce8ad2b284
commit c62f017bec
3 changed files with 5 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ gem 'delayed_job_active_record'
gem 'puma'
gem 'passenger'
gem 'tzinfo-data'
gem 'daemons'
group :development do
gem 'rubocop'

View File

@@ -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:

View File

@@ -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: