2020-06-12 03:38:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# set -o xtrace ## To debug scripts
|
|
|
|
# set -o errexit ## To exit on error
|
|
|
|
# set -o errunset ## To exit if a variable is referenced but not set
|
|
|
|
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
cd "${SCRIPTPATH}"
|
|
|
|
echo "Working Dir: " $(pwd)
|
|
|
|
mkdir /tmp/apps
|
2021-08-09 18:29:27 +00:00
|
|
|
|
|
|
|
echo "I can't get websocket socket to work with unix socket...."
|
|
|
|
echo "So, this script doesn't really work and will be exited."
|
|
|
|
return ;
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-03 03:35:19 +00:00
|
|
|
source "../venv/bin/activate"
|
2021-07-19 02:59:33 +00:00
|
|
|
|
|
|
|
LOG_LEVEL=debug
|
|
|
|
WORKER_COUNT=1
|
|
|
|
|
|
|
|
gunicorn wsgi:app --bind unix:/tmp/apps/remoteconn.sock \
|
|
|
|
-k eventlet \
|
|
|
|
-w $WORKER_COUNT \
|
|
|
|
--log-level $LOG_LEVEL
|
2020-06-12 03:38:20 +00:00
|
|
|
}
|
|
|
|
main $@;
|