Fix hardened production deploy script

This commit is contained in:
2026-04-08 23:07:33 -05:00
parent 1e965b6e71
commit f1bfa5aafc
+2 -1
View File
@@ -24,7 +24,8 @@ cp server.js "$FRONTEND_RUNTIME/"
echo "[deploy] Publishing backend runtime to $BACKEND_RUNTIME"
mkdir -p "$BACKEND_RUNTIME"
find "$BACKEND_RUNTIME" -mindepth 1 ! -name '.env' -exec rm -rf {} +
cp -r "$BACKEND_SOURCE"/* "$BACKEND_RUNTIME/"
cp -a "$BACKEND_SOURCE"/. "$BACKEND_RUNTIME/"
rm -f "$BACKEND_RUNTIME/.env.example"
cd "$BACKEND_RUNTIME"
npm ci --omit=dev