From 8c4913d85e2d22c01f871fa9c08cc06af53a6441 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Thu, 13 Nov 2025 23:24:50 +0900 Subject: [PATCH] chore: remove ec2-push-script.sh and add to .gitignore --- .gitignore | 1 + ec2-push-script.sh | 44 -------------------------------------------- 2 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 ec2-push-script.sh diff --git a/.gitignore b/.gitignore index af5de8c..efc3635 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,5 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts push-via-ec2.sh +ec2-push-script.sh .claude/settings.local.json diff --git a/ec2-push-script.sh b/ec2-push-script.sh deleted file mode 100644 index 09fa027..0000000 --- a/ec2-push-script.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -set -e - -BRANCH_NAME="$1" - -cd /tmp/next-ai-draw-io - -# Configure git -git config user.name "DayuanJiang" -git config user.email "jdy.toh@gmail.com" - -echo "=== Current git status ===" -git status - -echo "=== Checking out branch: ${BRANCH_NAME} ===" -git checkout ${BRANCH_NAME} || git checkout -b ${BRANCH_NAME} - -echo "=== Setting remote URL to use SSH ===" -git remote set-url origin git@github.com:DayuanJiang/next-ai-draw-io.git - -echo "=== Remote URL configured ===" -git remote -v - -# Commit any local changes if needed -git add -A || true -git diff --cached --quiet || git commit -m "Auto-commit before push" || true - -echo "=== Adding GitHub to known hosts ===" -ssh-keyscan -H github.com >> ~/.ssh/known_hosts 2>/dev/null || true - -echo "=== Testing SSH connection to GitHub ===" -ssh -T git@github.com 2>&1 || true - -echo "=== Pushing branch ${BRANCH_NAME} to GitHub ===" -git push -u origin ${BRANCH_NAME} - -echo "=== Push successful! ===" - -# Clean up -echo "=== Cleaning up ===" -cd /tmp -rm -rf next-ai-draw-io - -echo "Done!"