flask base
This commit is contained in:
parent
e36b5405f9
commit
48f5f347b1
0
app/__init__.py
Normal file
0
app/__init__.py
Normal file
0
app/views.py
Normal file
0
app/views.py
Normal file
3
config.py
Normal file
3
config.py
Normal file
@ -0,0 +1,3 @@
|
||||
# Flask debugging - DISABLE FOR PRODUCTION ENVIRONMENTS
|
||||
#DEBUG = True
|
||||
DEBUG = False
|
6
run.py
Executable file
6
run.py
Executable 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
18
uwsgi.ini
Normal 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
|
Loading…
Reference in New Issue
Block a user