Skip to content

PKG-Deploy/pkg-deploy-flask-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask example for PKG Deploy

RPM builds with:

  • Python3.6 / pip
  • Flask
  • Gunicorn
  • Nginx
  • Systemd

Note: This is just an example. The settings, requirements, layout etc are not done using best practices and are not production ready.

Local setup

python3.6 -m venv ./venv
source ./venv/bin/activate
pip install -r requirements.txt

FLASK_APP=app.py flask run --host 0.0.0.0:5000