chore(deploy): NAS 的 ssh 端口是 2222

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
ericwyuan
2026-09-01 09:05:35 +08:00
parent 41b7ae82e4
commit 1c48435b9d

View File

@@ -8,11 +8,15 @@
# #
# ./deploy/push.sh [user@host] [port] # ./deploy/push.sh [user@host] [port]
# #
# The password is never stored here — ssh asks for it on your terminal. To
# stop being asked at all, run `ssh-copy-id -p 2222 ericwyuan@192.168.50.64`
# once; after that this script runs unattended.
#
# Never touches .env, .venv or the database on the far side. # Never touches .env, .venv or the database on the far side.
set -e set -e
HOST="${1:-ericwyuan@192.168.50.64}" HOST="${1:-ericwyuan@192.168.50.64}"
PORT="${2:-22}" PORT="${2:-2222}"
REPO="$(cd "$(dirname "$0")/.." && pwd)" REPO="$(cd "$(dirname "$0")/.." && pwd)"
CTL="$(mktemp -u /tmp/garmin-deploy-XXXXXX)" CTL="$(mktemp -u /tmp/garmin-deploy-XXXXXX)"