Update bunkerweb-ui file according to the new gunicorn usage

This commit is contained in:
Théophile Diot 2023-05-31 14:19:00 -04:00
parent 5e237d0d03
commit 89a3c8b0b6
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 1 additions and 4 deletions

View File

@ -13,12 +13,9 @@ fi
# Function to start the UI
start() {
echo "Starting UI"
if [ ! -f /var/tmp/bunkerweb/ui.pid ]; then
touch /var/tmp/bunkerweb/ui.pid
fi
source /etc/bunkerweb/ui.env
export $(cat /etc/bunkerweb/ui.env)
PYTHONPATH=/usr/share/bunkerweb/deps/python:/usr/share/bunkerweb/ui python3 -m gunicorn main:app --worker-class gevent --bind 127.0.0.1:7000 --graceful-timeout 0 --access-logfile - --error-logfile - &
python3 -m gunicorn --config /usr/share/bunkerweb/ui/gunicorn.conf.py main:app --bind 127.0.0.1:7000 &
echo $! > /var/tmp/bunkerweb/ui.pid
}