install script
This commit is contained in:
9
_parent_files/run.py
Normal file
9
_parent_files/run.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from src.cont import app,freezer
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
if len(sys.argv) > 1 and sys.argv[1] == "build":
|
||||||
|
freezer.freeze()
|
||||||
|
else:
|
||||||
|
app.run(host='0.0.0.0',port=4444, debug=True)
|
||||||
|
|
||||||
17
_parent_files/uwsgi.ini
Normal file
17
_parent_files/uwsgi.ini
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[uwsgi]
|
||||||
|
uid = 1001
|
||||||
|
gid = 33
|
||||||
|
master = true
|
||||||
|
processes = 1
|
||||||
|
chown-socket =uwsgi:www-data
|
||||||
|
virtualenv = /srv/mddoc/
|
||||||
|
pythonpath = /srv/mddoc/
|
||||||
|
pidfile = /srv/mddoc/mddoc.pid
|
||||||
|
socket = /srv/mddoc/mddoc.sock
|
||||||
|
chmod-socket = 660
|
||||||
|
module = src
|
||||||
|
callable = app
|
||||||
|
logdate = true
|
||||||
|
logger = file:/var/log/uwsgi/mddoc.log
|
||||||
|
loglevel = debug
|
||||||
|
gevent = 100
|
||||||
Reference in New Issue
Block a user