diff --git a/Dockerfile b/Dockerfile index ccbddc3..88ec60e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,4 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser / USER appuser # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug -CMD ["gunicorn", "-c", "gunicorn.config.py", "wsgi:api"] +CMD ["gunicorn", "-c", "gunicorn.config.py", "prod:api"] diff --git a/README.md b/README.md index 42f1d82..8c49b1a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ pip install -r requirements.txt To run the development server run, you MUST have run `pip install` first: ```shell -gunicorn -c gunicorn.config.py wsgi:api +gunicorn -c gunicorn.config.py dev:api ``` Due to production container using .pipfiles and pipenv make sure to run the following to regenerate the pip files before a release commit: diff --git a/wsgi.py b/wsgi.py deleted file mode 100644 index ea8650b..0000000 --- a/wsgi.py +++ /dev/null @@ -1,5 +0,0 @@ -from app import api - -if __name__ == '__main__': - api.run(debug=False) -