mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update ui startup script
This commit is contained in:
parent
d5732b697e
commit
624ed08af5
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Set the PYTHONPATH
|
||||
export PYTHONPATH=/usr/share/bunkerweb/deps/python/:/usr/share/bunkerweb/ui/
|
||||
export PYTHONPATH=/usr/share/bunkerweb/deps/python/
|
||||
|
||||
# Create the ui.env file if it doesn't exist
|
||||
if [ ! -f /etc/bunkerweb/ui.env ]; then
|
||||
|
|
@ -15,8 +15,9 @@ start() {
|
|||
# shellcheck disable=SC2046
|
||||
export $(cat /etc/bunkerweb/ui.env)
|
||||
python3 -m gunicorn \
|
||||
--chdir /usr/share/bunkerweb/ui \
|
||||
--config /usr/share/bunkerweb/ui/gunicorn.conf.py \
|
||||
--pythonpath /usr/share/bunkerweb/deps/python/,/usr/share/bunkerweb/ui/ \
|
||||
--pythonpath /usr/share/bunkerweb/deps/python/ \
|
||||
--user nginx \
|
||||
--group nginx \
|
||||
--bind "127.0.0.1:7000" &
|
||||
|
|
|
|||
Loading…
Reference in a new issue