flask base

This commit is contained in:
brent s. 2019-11-17 03:13:40 -05:00
parent e36b5405f9
commit 48f5f347b1
5 changed files with 27 additions and 0 deletions

0
app/__init__.py Normal file
View File

0
app/views.py Normal file
View File

3
config.py Normal file
View File

@ -0,0 +1,3 @@
# Flask debugging - DISABLE FOR PRODUCTION ENVIRONMENTS
#DEBUG = True
DEBUG = False

6
run.py Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3

from app import app

if __name__ == '__main__':
app.run(debug = True)

18
uwsgi.ini Normal file
View File

@ -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