/flask_app_with_gunicorn

flask and gunicorn test

Primary LanguageHTMLThe UnlicenseUnlicense

flask app with gunicorn

un license

INDEX


ABOUT

  • Flask application を gunicorn と併用するテスト
  • templates/にはapp.pyで使用するhtmlテンプレートを格納している。

LICENSE


NO LICENSE


ENVIRONMENT


PREPARING

docker compose up

HOW TO USE

with gunicorn

  1. PREPARING
  2. open browser and go to localhost

just use python

  1. PREPARING
  2. log in to the docker container.
  3. run app.py with python3 command.
docker compose exec -it app "/bin/bash"

cd /usr/local/app
python3 app.py

REFERENCE