runtime env improvement

This commit is contained in:
2023-01-13 14:35:28 -08:00
parent 3f90b66b42
commit e1d27f344c
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
#!/bin/sh
# 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