Update UI starting script and ui tests script on linux

This commit is contained in:
Théophile Diot 2023-09-26 12:56:14 +01:00
parent b901d29710
commit 579c80357f
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
2 changed files with 10 additions and 2 deletions

View file

@ -13,7 +13,15 @@ fi
start() {
echo "Starting UI"
export $(cat /etc/bunkerweb/ui.env)
python3 -m gunicorn --config /usr/share/bunkerweb/ui/gunicorn.conf.py --user nginx --group nginx --bind "127.0.0.1:7000" &
python3 -m gunicorn \
--config /usr/share/bunkerweb/ui/gunicorn.conf.py \
--pythonpath /usr/share/bunkerweb/deps/python/,/usr/share/bunkerweb/ui/ \
--user nginx \
--group nginx \
--bind "127.0.0.1:7000" &
while ! [ -f "/var/run/bunkerweb/ui.pid" ]; do
sleep 1
done
}
# Function to stop the UI

View file

@ -36,7 +36,7 @@ if [ "$integration" = "docker" ] ; then
fi
else
sudo systemctl stop bunkerweb bunkerweb-ui
sudo sed -i "/python3 -m gunicorn/c\ python3 -m gunicorn --config /usr/share/bunkerweb/ui/gunicorn.conf.py --user nginx --group nginx --bind \"127.0.0.1:7000\" --log-level debug &" /usr/share/bunkerweb/scripts/bunkerweb-ui.sh
sudo sed -i "/--bind \"127.0.0.1:7000\" &/c\ --bind \"127.0.0.1:7000\" --log-level debug &" /usr/share/bunkerweb/scripts/bunkerweb-ui.sh
sudo mkdir /var/www/html/app1.example.com
sudo touch /var/www/html/app1.example.com/index.html
export TEST_TYPE="linux"