Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 441 Bytes

README.zh-CN.md

File metadata and controls

28 lines (17 loc) · 441 Bytes

应用程序崩溃后自动重启 nodemon 应用程序

这个项目是在崩溃的情况下自动重启 nodemon。

要求

•Node.js

•Nodemon(可安装:

npm i -g nodemon

)

使用说明:

Edit the config.json file as in the example:

{
    "file":"/sdcard/bot/main.js",
    "pathToWatch":"/sdcard/bot"
}

将 start.js 和 config.json 文件复制到您的项目文件夹并启动它:

node start.js