diff --git a/Dockerfile b/Dockerfile index 7dbf47d..ac7fa5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,4 +36,4 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser / USER appuser EXPOSE 5001 -CMD [ "flask", "run", "--host", "0.0.0.0", "--port", "5001"] +CMD [ "waitress-serve", "--host", "0.0.0.0", "--port", "5001", "main:app"] diff --git a/README.md b/README.md index 4f666c5..4021d72 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The ENV variables: interactive traceback in the browser when an unhandled error occurs during a request. This debugger should only be used during development. - **FLASK_APP**. The environment variable is the name of the module to import at flask run. Usually `main.py`. -- *SECRET_KEY**. A secret key that will be used for securely signing the session cookie and can be used for any other +- **SECRET_KEY**. A secret key that will be used for securely signing the session cookie and can be used for any other security related needs by extensions or your application. It should be a long random `bytes` or `str`. - **MONGO_URI**. The standard URI connection scheme. - **MONGO_INITDB_DATABASE**. The DB name. diff --git a/changelog.md b/changelog.md index 387adbd..f0ebb67 100644 --- a/changelog.md +++ b/changelog.md @@ -74,4 +74,19 @@ - Change import in routes.py - Code prettified - [readme.md](README.md) updated -- [changelog.md](changelog.md) added \ No newline at end of file +- [changelog.md](changelog.md) added + +*** + +## v2.3 + +### The main pull requests + +- https://github.com/AMProduction/SearchMyData-2.0/pull/34 + +### The main changes + +- Added the [Waitress](https://flask.palletsprojects.com/en/2.3.x/deploying/waitress/) as a prod WSGI server +- [Dockerfile](Dockerfile) modified +- [readme.md](README.md) updated +- [changelog.md](changelog.md) updated \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b13a51c..beb4723 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ pymongo>=4.5.0 mongoengine>=0.27.0 WTForms>=3.0.1 flask_wtf +waitress \ No newline at end of file