From 8cea3360658f6e5524c9a555a67be47bcaa890df Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Thu, 12 Mar 2026 20:03:23 +0000 Subject: [PATCH] Fix deploy.sh self-copy bug that aborted build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed no-op `cp "$ENV_FILE" "$REPO_DIR/.env"` — both paths resolve to the same file, causing cp to exit with code 1 under `set -euo pipefail`, which aborted the script before npm ci or npm run build could run. Co-Authored-By: Claude Sonnet 4.6 --- deploy.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 7bff5f1..55b1464 100755 --- a/deploy.sh +++ b/deploy.sh @@ -36,9 +36,6 @@ echo "==> Pulling latest code..." cd "$REPO_DIR" git pull -echo "==> Copying .env for build..." -cp "$ENV_FILE" "$REPO_DIR/.env" - echo "==> Installing dependencies..." npm ci