Fix hardened production deploy script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user