aboutsummaryrefslogtreecommitdiff
path: root/hex-zero.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'hex-zero.wsgi')
-rwxr-xr-xhex-zero.wsgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/hex-zero.wsgi b/hex-zero.wsgi
index c3f7747..65972f6 100755
--- a/hex-zero.wsgi
+++ b/hex-zero.wsgi
@@ -6,10 +6,10 @@ test -z "${LISTEN_HOST}" && export LISTEN_HOST=localhost
test -z "${LISTEN_PORT}" && export LISTEN_PORT=3031
test -z "${PIDFILE}" && export PIDFILE=/var/run/hex-zero.pid
test -z "${LOGFILE}" && export LOGFILE=/var/log/hex-zero/hex-zero.log
-test -z "${UWSGI_OPTS}" && export UWSGI_OPTS="--http-socket ${LISTEN_HOST}:${LISTEN_PORT} --wsgi-file /var/www/0x0/hex-zero.py --callable app --log-x-forwarded-for --logto ${LOGFILE} --touch-reload /var/www/0x0/hex-zero.py --touch-reload /var/www/0x0/hex-zero.conf --pidfile ${PIDFILE} --uid ${UWSGI_USER}"
+test -z "${UWSGI_OPTS}" && export UWSGI_OPTS="--http-socket ${LISTEN_HOST}:${LISTEN_PORT} --wsgi-file /var/www/hex-zero/hex_zero.py --callable app --log-x-forwarded-for --logto ${LOGFILE} --touch-reload /var/www/hex-zero/hex_zero.py --touch-reload /var/www/hex-zero/hex-zero.conf --pidfile ${PIDFILE} --uid ${UWSGI_USER}"
# check for short_url
-/var/www/0x0/check-for-short_url.sh || exit 1
+/var/www/hex-zero/check-for-short_url.sh || exit 1
test -n "${FORCE_KILL_OLD_UWSGI}" && {
ps -o user=,pid=,command:80= -u "${UWSGI_USER}" | awk '/hex-zero\.py/{print $2}' | xargs --no-run-if-empty kill
bgstack15