Commit
·
08762ac
1
Parent(s):
05501d1
fixed wsgi entrypoint
Browse files- Dockerfile +1 -1
- gunicorn_config.py +1 -1
- wsgi.py +0 -7
Dockerfile
CHANGED
|
@@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
-
CMD ["gunicorn", "-c", "gunicorn_config.py", "
|
|
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
+
CMD ["gunicorn", "-c", "gunicorn_config.py", "server:app"]
|
gunicorn_config.py
CHANGED
|
@@ -2,6 +2,6 @@ import multiprocessing
|
|
| 2 |
|
| 3 |
# Gunicorn config variables
|
| 4 |
bind = "0.0.0.0:7860" # Replace with your desired host and port
|
| 5 |
-
workers =
|
| 6 |
threads = 2 * multiprocessing.cpu_count()
|
| 7 |
timeout = 3600
|
|
|
|
| 2 |
|
| 3 |
# Gunicorn config variables
|
| 4 |
bind = "0.0.0.0:7860" # Replace with your desired host and port
|
| 5 |
+
workers = 1
|
| 6 |
threads = 2 * multiprocessing.cpu_count()
|
| 7 |
timeout = 3600
|
wsgi.py
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
from server import create_app
|
| 2 |
-
|
| 3 |
-
if __name__ == '__main__':
|
| 4 |
-
create_app = create_app()
|
| 5 |
-
create_app.run()
|
| 6 |
-
else:
|
| 7 |
-
app = create_app()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|