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 'puma'
|
||||||
gem 'passenger'
|
gem 'passenger'
|
||||||
gem 'tzinfo-data'
|
gem 'tzinfo-data'
|
||||||
|
gem 'daemons'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'rubocop'
|
gem 'rubocop'
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ services:
|
|||||||
- ./prod.env
|
- ./prod.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: kill -0 1
|
test: kill -0 1
|
||||||
command: bundle exec rake jobs:work RAILS_ENV=production
|
command: bundle exec bin/delayed_job -n 1 run
|
||||||
|
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ services:
|
|||||||
context: ../
|
context: ../
|
||||||
dockerfile: ./deploy/rails-prod-Dockerfile
|
dockerfile: ./deploy/rails-prod-Dockerfile
|
||||||
environment:
|
environment:
|
||||||
|
- RAILS_ENV=production
|
||||||
- WRESTLINGDEV_DB_NAME=wrestlingtourney
|
- WRESTLINGDEV_DB_NAME=wrestlingtourney
|
||||||
- WRESTLINGDEV_DB_USR=root
|
- WRESTLINGDEV_DB_USR=root
|
||||||
- WRESTLINGDEV_DB_PWD=password
|
- WRESTLINGDEV_DB_PWD=password
|
||||||
@@ -64,6 +65,7 @@ services:
|
|||||||
worker:
|
worker:
|
||||||
image: wrestlingdev
|
image: wrestlingdev
|
||||||
environment:
|
environment:
|
||||||
|
- RAILS_ENV=production
|
||||||
- WRESTLINGDEV_DB_NAME=wrestlingtourney
|
- WRESTLINGDEV_DB_NAME=wrestlingtourney
|
||||||
- WRESTLINGDEV_DB_USR=root
|
- WRESTLINGDEV_DB_USR=root
|
||||||
- WRESTLINGDEV_DB_PWD=password
|
- WRESTLINGDEV_DB_PWD=password
|
||||||
@@ -80,7 +82,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: kill -0 1
|
test: kill -0 1
|
||||||
command: bundle exec rake jobs:work RAILS_ENV=production
|
command: bundle exec bin/delayed_job -n 1 run
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
Reference in New Issue
Block a user