Skip to content

Hello World Flask app ready to run localy and on serve with docker

Notifications You must be signed in to change notification settings

EPFL-ENAC/helloFlask

Repository files navigation

Flask Hello world project ready with docker

Tiny demo project that run a Flask hello app :

  • locally with Flask command (dev)
  • locally with Gunicorn (test)
  • locally or on server with Gunicorn inside Docker (prod)

Run the app

locally

Run the following commands :

make setup # only once
make generate-selfsigned-cert # only once

make run-dev # dev mode (Flask)
make run-prod # test mode (Gunicorn)
make run # prod mode (Gunicorn inside Docker)

on server

Run the following command :

make run # prod mode (Gunicorn inside Docker)

Stop the service :

docker-compose down

Check result

About

Hello World Flask app ready to run localy and on serve with docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published