Skip to content

Commit

Permalink
tests - show logs when haproxy fails in linux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0ppy-d1sk committed Dec 4, 2023
1 parent a26ff09 commit d3672e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/behind-reverse-proxy/setup-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ cp haproxy.cfg /etc/haproxy
sed -i "s/*:8080/*:80/" /etc/haproxy/haproxy.cfg
sed -i "s/mybunker/127.0.0.1/" /etc/haproxy/haproxy.cfg
systemctl stop bunkerweb
sleep 10
systemctl stop haproxy
systemctl start haproxy
if [ $? -ne 0 ] ; then
systemctl status haproxy
journalctl -u haproxy.service
fi

echo "hello" > /var/www/html/index.html

0 comments on commit d3672e6

Please sign in to comment.