
The initRVP spawns all this server scripts and exposes them to public network by tunneling the service to serveo.net via ssh
10 lines
252 B
Bash
10 lines
252 B
Bash
|
|
EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:4533 serveo.net")
|
|
echo $EXISTING_SSH_PID
|
|
|
|
|
|
if ! [ -n "$EXISTING_SSH_PID" ]; then
|
|
# Start reverse proxy in the background
|
|
nohup caddy reverse-proxy --from :2637 --to :4533
|
|
fi
|