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:
parent
f145712998
commit
8cea336065
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue