Skip to content

Commit

Permalink
Update pr-deploy.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Dominic <[email protected]>
  • Loading branch information
dominic-source authored Jul 31, 2024
1 parent 1333fdd commit 56bc237
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pr-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ echo "Start SSH session..."
# grep -q "ssh: connect to host serveo.net port 22: Connection refused" serveo_output.log || grep -q "ssh: connect to host serveo.net port 22: Connection timed out" serveo_output.log
# }

# # Set up tunneling using Serveo with a random high-numbered port
# nohup ssh -tt -o StrictHostKeyChecking=no -R 80:localhost:$FREE_PORT serveo.net > serveo_output.log 2>&1 &
# sleep 3
# Set up tunneling using Serveo with a random high-numbered port
nohup ssh -tt -o StrictHostKeyChecking=no -R 80:localhost:$FREE_PORT serveo.net > serveo_output.log 2>&1 &
sleep 3

# # Check if Serveo tunnel was set up successfully
# if [ check_serveo ]; then
# DEPLOYED_URL=$(grep "Forwarding HTTP traffic from" serveo_output.log | tail -n 1 | awk '{print $5}')
DEPLOYED_URL=$(grep "Forwarding HTTP traffic from" serveo_output.log | tail -n 1 | awk '{print $5}')
# else
nohup ssh -tt -o StrictHostKeyChecking=no -R 80:localhost:$FREE_PORT ssh.localhost.run > localhost_run_output.log 2>&1 &
sleep 30
# if grep -q "Connect to" localhost_run_output.log; then
DEPLOYED_URL=$(grep "tunneled with tls termination" localhost_run_output.log | awk '{print $NF}')
# nohup ssh -tt -o StrictHostKeyChecking=no -R 80:localhost:$FREE_PORT ssh.localhost.run > localhost_run_output.log 2>&1 &
# sleep 30
# # if grep -q "Connect to" localhost_run_output.log; then
# DEPLOYED_URL=$(grep "tunneled with tls termination" localhost_run_output.log | awk '{print $NF}')
# else
# DEPLOYED_URL=""
# fi
Expand Down

0 comments on commit 56bc237

Please sign in to comment.