Skip to content

Commit

Permalink
Merge pull request #34 from AMProduction/32-v20-deploy-prep
Browse files Browse the repository at this point in the history
32 v20 deploy prep
  • Loading branch information
AMProduction authored Sep 5, 2023
2 parents 15308c5 + 3873454 commit e26530c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 16 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,19 @@
- Change import in routes.py
- Code prettified
- [readme.md](README.md) updated
- [changelog.md](changelog.md) added
- [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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ pymongo>=4.5.0
mongoengine>=0.27.0
WTForms>=3.0.1
flask_wtf
waitress

0 comments on commit e26530c

Please sign in to comment.