From 1c48435b9d5b6631e9cc823fb0842a46acf26fb0 Mon Sep 17 00:00:00 2001 From: ericwyuan Date: Tue, 1 Sep 2026 09:05:35 +0800 Subject: [PATCH] =?UTF-8?q?chore(deploy):=20NAS=20=E7=9A=84=20ssh=20?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E6=98=AF=202222?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5 --- deploy/push.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/push.sh b/deploy/push.sh index 7c72eab..ba5f7e8 100755 --- a/deploy/push.sh +++ b/deploy/push.sh @@ -8,11 +8,15 @@ # # ./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. set -e HOST="${1:-ericwyuan@192.168.50.64}" -PORT="${2:-22}" +PORT="${2:-2222}" REPO="$(cd "$(dirname "$0")/.." && pwd)" CTL="$(mktemp -u /tmp/garmin-deploy-XXXXXX)"