Skip to content

Commit

Permalink
Add workers (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo committed Sep 12, 2019
1 parent 039a0cc commit 6738b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ ADD . /speid/
ENV PORT 3000
EXPOSE $PORT

CMD gunicorn --access-logfile=- --error-logfile=- --bind=0.0.0.0:3000 --workers=5 speid:app
CMD celery worker -A speid.tasks.celery -D --loglevel=info -c 5 && \
gunicorn --access-logfile=- --error-logfile=- --bind=0.0.0.0:3000 --workers=5 speid:app

0 comments on commit 6738b9d

Please sign in to comment.