updated some things

This commit is contained in:
Solomon Laing 2021-06-03 22:55:18 +09:30
parent 77c834df35
commit a81d131247
3 changed files with 2 additions and 7 deletions

View File

@ -23,4 +23,4 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /
USER appuser USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug # 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"]

View File

@ -19,7 +19,7 @@ pip install -r requirements.txt
To run the development server run, you MUST have run `pip install` first: To run the development server run, you MUST have run `pip install` first:
```shell ```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: Due to production container using .pipfiles and pipenv make sure to run the following to regenerate the pip files before a release commit:

View File

@ -1,5 +0,0 @@
from app import api
if __name__ == '__main__':
api.run(debug=False)