mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Update UI starting script and ui tests script on linux
This commit is contained in:
parent
b901d29710
commit
579c80357f
|
@ -13,7 +13,15 @@ fi
|
||||||
start() {
|
start() {
|
||||||
echo "Starting UI"
|
echo "Starting UI"
|
||||||
export $(cat /etc/bunkerweb/ui.env)
|
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
|
# Function to stop the UI
|
||||||
|
|
|
@ -36,7 +36,7 @@ if [ "$integration" = "docker" ] ; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
sudo systemctl stop bunkerweb bunkerweb-ui
|
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 mkdir /var/www/html/app1.example.com
|
||||||
sudo touch /var/www/html/app1.example.com/index.html
|
sudo touch /var/www/html/app1.example.com/index.html
|
||||||
export TEST_TYPE="linux"
|
export TEST_TYPE="linux"
|
||||||
|
|
Loading…
Reference in a new issue