Skip to content

Commit e9a6f2d

Browse files
committed
fix(deploy): launch PM2 via npm to avoid pnpm auto-install crash loop
In a Rush-managed package, pnpm 11's verify-deps-before-run auto-fires a standalone `pnpm install` before `pnpm run`, which fails with ERR_PNPM_WORKSPACE_PKG_NOT_FOUND (siblings like @meese-os/eslint-config aren't present as a pnpm workspace) and crash-loops the service, leaving nothing on :8000 and producing a Cloudflare 502. npm runs the script without a deps check; Rush still owns the build in deploy.sh.
1 parent 3acf8e4 commit e9a6f2d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ecosystem.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ module.exports = {
1010
{
1111
name: "meeseos",
1212
script: "/bin/bash",
13-
args: ["-c", "pnpm run deploy"],
13+
// Launch via `npm`, not `pnpm`: in a Rush package, pnpm's verify-deps-before-run
14+
// auto-fires a standalone `pnpm install` that fails (ERR_PNPM_WORKSPACE_PKG_NOT_FOUND)
15+
// and crash-loops the service. npm just runs the script. Build is handled by deploy.sh.
16+
args: ["-c", "npm run deploy"],
1417
cwd: websiteDir,
1518
instances: 1,
1619
exec_mode: "fork",

0 commit comments

Comments
 (0)