Run delayed job in the api container

accepting is a delayed job, so it needs to run in some queue
This commit is contained in:
Stephan Kulow 2019-11-20 09:04:55 +01:00
parent 088ba65690
commit 5cba9ae5b2

View File

@ -17,7 +17,11 @@ services:
command: /usr/sbin/memcached -u memcached
api:
<<: *obs
command: chroot --userspec=wwwrun / /bin/bash -c "cd /srv/www/obs/api && RAILS_ENV=production rake ts:rebuild && /usr/bin/bundle exec rails s -e production"
command: >
chroot --userspec=wwwrun / /bin/bash -c "cd /srv/www/obs/api &&
RAILS_ENV=production rake ts:rebuild &&
RAILS_ENV=production ./script/delayed_job.api.rb --queues=staging,quick start &&
/usr/bin/bundle exec rails s -e production"
depends_on:
- db
- cache