This commit is contained in:
eafonyang
2026-06-05 20:15:30 +08:00
parent 8c22be4e0a
commit 99785672a5
15 changed files with 439 additions and 8 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
REMOTE="ubuntu@ec2-18-184-205-87.eu-central-1.compute.amazonaws.com:/data/project/app-api/"
KEY="$HOME/.ssh/aws_eafon.pem"
if [ $# -eq 0 ]; then
PATHS=(
./cmd/
./internal/
./pkg
./go.mod
./go.sum
./Dockerfile
./docker-compose.yml
)
else
PATHS=("$@")
fi
scp -i "$KEY" -r "${PATHS[@]}" "$REMOTE"