Fix PM2 startup and harden server entry detection.
Use a bash launch script for production and pathToFileURL-based main-module checks so sourcing.simosen.cn listens reliably under PM2. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
exec /root/.nvm/versions/node/v20.20.2/bin/node src/server.js
|
||||
Reference in New Issue
Block a user