Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryosukedtomita/flask_app_with_gunicorn
flask and gunicorn test
https://github.com/ryosukedtomita/flask_app_with_gunicorn
flask-application gunicorn python3
Last synced: about 2 months ago
JSON representation
flask and gunicorn test
- Host: GitHub
- URL: https://github.com/ryosukedtomita/flask_app_with_gunicorn
- Owner: RyosukeDTomita
- License: unlicense
- Created: 2024-01-19T05:26:36.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-06-14T01:14:16.000Z (7 months ago)
- Last Synced: 2024-06-14T02:37:38.759Z (7 months ago)
- Topics: flask-application, gunicorn, python3
- Language: HTML
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask app with gunicorn
![un license](https://img.shields.io/github/license/RyosukeDTomita/flask_app_with_gunicorn)
## INDEX
- [ABOUT](#about)
- [LICENSE](#license)
- [ENVIRONMENT](#environment)
- [PREPARING](#preparing)
- [HOW TO USE](#how-to-use)
- [ABOUT](#about)
- [REFERENCE](#reference)---
## ABOUT
- Flask application を gunicorn と併用するテスト
- templates/にはapp.pyで使用するhtmlテンプレートを格納している。---
## LICENSE
---
[NO LICENSE](./LICENSE)
---
## ENVIRONMENT
- python3.10
- see [requiremets.txt](./requirements.txt)---
## PREPARING
```shell
docker compose up
```---
## HOW TO USE
### with gunicorn1. [PREPARING](#preparing)
2. open browser and go to [localhost](http://localhost)### just use python
1. [PREPARING](#preparing)
2. log in to the docker container.
3. run app.py with `python3` command.```shell
docker compose exec -it app "/bin/bash"cd /usr/local/app
python3 app.py
```---
## REFERENCE
- [公式ドキュメント](https://msiz07-flask-docs-ja.readthedocs.io/ja/latest/index.html)
- [jinja](https://jinja.palletsprojects.com/en/latest/): flask側で受け取った変数をtemplates/に渡す。