Skip to content

jcapona/flask-skel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask App Skeleton

Skeleton of a flask-based python app

Local testing

Run using the development server, with:

$ python wsgi.py

Or with gunicorn:

$ gunicorn --bind='0.0.0.0:5000' wsgi:app

Using Docker

Install and setup your docker environment.

Build the docker image with:

$ docker build -f deploy/Dockerfile -t server:latest .

And run with:

$ docker run -p 5000:5000 \
--network=host \
-e FLASK_APP=app \
-e FLASK_DEBUG=0 \
-e FLASK_ENV=<<ENVIRONMENT>> \
-e SQLALCHEMY_DATABASE_URI=<<DATABASE_URI>> \
-e SECRET_KEY=<<SECRET_KEY>> \
server:latest

About

Skeleton of a flask-based python app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published