Skip to content

Commit d51a634

Browse files
committed
moved gunicorn config out of dockerfile
Now you can just run it with `gunicorn`
1 parent d9fd47c commit d51a634

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ COPY --from=build-frontend /opt/conditional/conditional/static /opt/conditional/
4040

4141
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
4242

43-
CMD ["sh", "-c", "gunicorn conditional:app"]
43+
CMD ["sh", "-c", "gunicorn"]
4444

gunicorn.conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

3-
bind = f'0.0.0.0:{os.getenv('PORT')}'
3+
wsgi_app = 'conditional:app'
4+
bind = f'0.0.0.0:{os.getenv('PORT', 8080)}'
45
workers = os.getenv('CONDITIONAL_WORKERS', 1)
56
accesslog = '-'
67
timeout = 256

0 commit comments

Comments
 (0)