Skip to content

Commit 7ae7984

Browse files
committed
Update Makefile
1 parent d2a4d57 commit 7ae7984

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,14 @@ update:
7676
git pull
7777
@echo Updating database
7878
python manage.py migrate
79-
@echo === Reboot or restart WSGI manually to update web frontend ===
8079
@read -p "Reboot now (y/n)? " REBOOTCHOICE; \
81-
if [ "${REBOOTCHOICE}" = 'y' ]; then reboot; \
82-
else logesp start; echo logesp daemon restarted; fi
80+
UWSGIPROC=$(cat /opt/LogESP/run/logesp-uwsgi-master.pid); \
81+
if [ "${REBOOTCHOICE}" = 'y' ]; then \
82+
kill -11 "${UWSGIPROC}"; reboot; \
83+
else kill -11 "${UWSGIPROC}"; \
84+
/opt/LogESP/env/bin/uwsgi \
85+
--ini /opt/LogESP/config/nginx/logesp_uwsgi.ini; \
86+
logesp start; echo logesp daemon restarted; fi
8387
@echo Have a nice day!
8488

8589
newdb: newdb-setup fixtures

0 commit comments

Comments
 (0)