runtime env improvement
This commit is contained in:
+7
-1
@@ -1,3 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# run from current directory only
|
# run from current directory only
|
||||||
uwsgi_python3 --http-socket 0.0.0.0:1612 --wsgi-file app.py --callable app
|
FILE=app.py
|
||||||
|
if test -f "$FILE"; then
|
||||||
|
uwsgi_python3 --http-socket 0.0.0.0:1612 --wsgi-file app.py --callable app
|
||||||
|
else
|
||||||
|
cd /opt/kjv-api
|
||||||
|
uwsgi_python3 --http-socket 0.0.0.0:1612 --wsgi-file /opt/kjv-api/app.py --callable app
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd /opt/kjv-api
|
||||||
uwsgi_python3 --http-socket :1611 --wsgi-file /opt/kjv-api/app.py --callable app --stats 127.0.0.1:9191
|
uwsgi_python3 --http-socket :1611 --wsgi-file /opt/kjv-api/app.py --callable app --stats 127.0.0.1:9191
|
||||||
|
|||||||
Reference in New Issue
Block a user