We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a4d57 commit 7ae7984Copy full SHA for 7ae7984
Makefile
@@ -76,10 +76,14 @@ update:
76
git pull
77
@echo Updating database
78
python manage.py migrate
79
- @echo === Reboot or restart WSGI manually to update web frontend ===
80
@read -p "Reboot now (y/n)? " REBOOTCHOICE; \
81
- if [ "${REBOOTCHOICE}" = 'y' ]; then reboot; \
82
- else logesp start; echo logesp daemon restarted; fi
+ UWSGIPROC=$(cat /opt/LogESP/run/logesp-uwsgi-master.pid); \
+ if [ "${REBOOTCHOICE}" = 'y' ]; then \
+ 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
87
@echo Have a nice day!
88
89
newdb: newdb-setup fixtures
0 commit comments