jw-12138 / watchMos

a script that reopens Mos when it got crashed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

watchMos

a script that re-opens Mos when it got crashed.

一个 Mos.app 的监控脚本。

how to use 如何使用

  1. install nvm
    安装nvm

  2. open Terminal.app and use nvm to install NodeJS
    打开mac上的终端,使用nvm安装NodeJS

nvm install 18
  1. clone this repo and run npm i in the project root path
    克隆这个项目,并在项目目录下运行npm i以安装依赖

  2. use npm to install pm2
    使用npm安装pm2

npm i pm2 -g
  1. use pm2 to run this script so you don't have to keep the terminal opened
    如果你不想一直开着终端,可以使用pm2运行此脚本
pm2 start ./main.js

About

a script that reopens Mos when it got crashed.

License:MIT License


Languages

Language:JavaScript 100.0%