Final install.sh touches
This commit is contained in:
+11
-4
@@ -31,7 +31,7 @@ systemctl enable kjv-api.service
|
|||||||
systemctl start kjv-api.service
|
systemctl start kjv-api.service
|
||||||
|
|
||||||
echo "Waiting for the service to initialize"
|
echo "Waiting for the service to initialize"
|
||||||
sleep 5
|
sleep 3
|
||||||
|
|
||||||
echo "If you see a random Bible verse below in json format, your installation was successful:"
|
echo "If you see a random Bible verse below in json format, your installation was successful:"
|
||||||
echo
|
echo
|
||||||
@@ -40,10 +40,17 @@ curl -XGET 127.0.0.1:1611/random
|
|||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "You must now set your webserver as a reverse proxy for your domain and point it to 127.0.0.1:1611"
|
YEL='\033[0;33m'
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
echo -e "${YEL}You must now set your webserver as a reverse proxy for your domain and point it to 127.0.0.1:1611 ${NC}"
|
||||||
echo "See the install folder for example configuration files."
|
echo "See the install folder for example configuration files."
|
||||||
echo
|
echo
|
||||||
echo "Notes:"
|
echo "Notes:"
|
||||||
echo " - Thank you for running this software to bring the Bible to people."
|
echo " - Thank you for running this software to bring the Bible to people."
|
||||||
echo " - You can change the pages (it's not fancy) in html/. There's no fancy libraries."
|
echo " - You can change the pages (it's not fancy) in /opt/kjv-api/html/. There's no fancy libraries."
|
||||||
echo
|
echo " - Logs are located in two places (application logs and uwsgi logs)."
|
||||||
|
echo " - /opt/kjv-api/logs/"
|
||||||
|
echo " - journalctl -e -u kjv-api.service"
|
||||||
|
echo " - If this install failed (you didn't get a Bible verse above) - try running /opt/kjv-api/kjv-api-test.sh"
|
||||||
|
echo " after stopping the kjv-api.service with systemctl, it should give you a traceback in your console."
|
||||||
|
|||||||
+2
-2
@@ -2,9 +2,9 @@
|
|||||||
# run from current directory only
|
# run from current directory only
|
||||||
FILE=app.py
|
FILE=app.py
|
||||||
if test -f "$FILE"; then
|
if test -f "$FILE"; then
|
||||||
uwsgi_python310 --http-socket 0.0.0.0:1612 --wsgi-file app.py --callable app --pyargv "-vvv" --stats 0.0.0.0:9192
|
uwsgi_python3 --http-socket 0.0.0.0:1612 --wsgi-file app.py --callable app --pyargv "-vvv" --stats 0.0.0.0:9192
|
||||||
else
|
else
|
||||||
cd /opt/kjv-api
|
cd /opt/kjv-api
|
||||||
echo "WARNING: RUNNING FROM /opt/kjv-api"
|
echo "WARNING: RUNNING FROM /opt/kjv-api"
|
||||||
uwsgi_python310 --http-socket 0.0.0.0:1612 --wsgi-file /opt/kjv-api/app.py --callable app --pyargv "-vvv"
|
uwsgi_python3 --http-socket 0.0.0.0:1612 --wsgi-file /opt/kjv-api/app.py --callable app --pyargv "-vvv"
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /opt/kjv-api
|
cd /opt/kjv-api
|
||||||
uwsgi_python312 --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