backtrace-console
v0.0.8
Published
CLI server manager for backtrace-console — run/start/stop the Express server.
Readme
backtrace-console
Server manager for backtrace-console — start, stop, and manage the Express server process from the command line.
Install
npm install -g backtrace-consoleUsage
Run all commands from the backtrace-console project root directory.
# 前台启动(Ctrl+C 停止)
backtrace-server run
# 后台守护进程启动
backtrace-server start
# 停止后台进程
backtrace-server stop
# 查看运行状态
backtrace-server statusHow it works
run— loads.envin the current directory and startsbin/wwwin the foreground.start— spawnsbin/wwwas a detached background process. PID is saved to.backtrace-server.pidand logs are appended to.backtrace-server.log.stop— reads.backtrace-server.pidand sendsSIGTERMto the process.status— checks whether the recorded PID is still alive.
Requirements
- Node.js 18+
- Must be run inside a
backtrace-consoleproject directory (i.e.bin/wwwmust exist).
