chore: 添加启动脚本以通过forever管理Node.js应用

- 设置日志目录和PID文件路径
- 使用forever守护进程运行pnpm start命令
- 指定应用唯一标识符和端口4010
This commit is contained in:
2026-01-29 13:34:06 +08:00
parent 095f02700f
commit 1900a64160

7
run.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
export LOG=/var/log/nodejs/or_r
export PID=$LOG/forever.pid
export UID_TAG=or_r
forever start -l $LOG/access.log -o $LOG/out.log -e $LOG/err.log -a --uid $UID_TAG --pidFile $PID -c "pnpm start -p 4010" ./