Fix deploy.sh self-copy bug that aborted build

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 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-12 20:03:23 +00:00
parent f145712998
commit 8cea336065

View file

@ -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