From 48f5f347b17faffcd6af06e1671a33f119479c72 Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 17 Nov 2019 03:13:40 -0500 Subject: [PATCH] flask base --- app/__init__.py | 0 app/views.py | 0 config.py | 3 +++ run.py | 6 ++++++ uwsgi.ini | 18 ++++++++++++++++++ 5 files changed, 27 insertions(+) create mode 100644 app/__init__.py create mode 100644 app/views.py create mode 100644 config.py create mode 100755 run.py create mode 100644 uwsgi.ini diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/views.py b/app/views.py new file mode 100644 index 0000000..e69de29 diff --git a/config.py b/config.py new file mode 100644 index 0000000..e237be0 --- /dev/null +++ b/config.py @@ -0,0 +1,3 @@ +# Flask debugging - DISABLE FOR PRODUCTION ENVIRONMENTS +#DEBUG = True +DEBUG = False diff --git a/run.py b/run.py new file mode 100755 index 0000000..8db5665 --- /dev/null +++ b/run.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 + +from app import app + +if __name__ == '__main__': + app.run(debug = True) diff --git a/uwsgi.ini b/uwsgi.ini new file mode 100644 index 0000000..7b479f4 --- /dev/null +++ b/uwsgi.ini @@ -0,0 +1,18 @@ +[uwsgi] +plugin = python +py-autoreload = 1 +#uid = http +#gid = http +socket = /run/uwsgi/bootbox.sock +chown-socket = http:http +processes = 4 +master = 1 +base = /usr/local/lib/bootbox +chdir = %(base) +#mount = /=%(base)/run.py +wsgi-file = %(base)/run.py +chmod-socket = 660 +callable = app +cgi-helper =.py=python +logto = /var/log/uwsgi/%n.log +vacuum