Add remote port forwarding command to hotreload.sh

This commit is contained in:
ekzyis 2024-08-08 01:38:53 -05:00
parent a2b717b336
commit 65e7adc7fa
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ PID=$(pidof delphi.market)
set -e set -e
echo ":: remote port forwarding for dev1.delphi.market ::"
ssh -fnNR 4322:localhost:4321 dev1.delphi.market
echo
function restart_server() { function restart_server() {
set +e set +e
[[ -z "$PID" ]] || kill -15 $PID [[ -z "$PID" ]] || kill -15 $PID