
The initRVP spawns all this server scripts and exposes them to public network by tunneling the service to serveo.net via ssh
13 lines
269 B
Bash
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
|