broken-mobile-server/initRVP_http.sh
arul aa2c1bf57b Upload files to "/"
The initRVP spawns all this server scripts and exposes them to public network
by tunneling the service to serveo.net via ssh
2024-06-02 20:44:40 +00:00

13 lines
269 B
Bash

EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:8080 serveo.net")
echo $EXISTING_SSH_PID
if ! [ -n "$EXISTING_SSH_PID" ]; then
# Start reverse port forwarding in the background
nohup caddy reverse-proxy --from :2638 --to :8080
fi