No description
  • TypeScript 100%
Find a file
2025-01-01 00:10:44 +09:00
.vscode Initial commit 2022-09-25 23:59:33 +09:00
src fix: add some logs for reload target check 2025-01-01 00:10:38 +09:00
.DS_Store fix: files 2023-05-28 16:04:36 +09:00
.editorconfig Initial commit 2022-09-25 23:59:33 +09:00
.gitignore Initial commit 2022-09-25 23:59:33 +09:00
.prettierrc.cjs Initial commit 2022-09-25 23:59:33 +09:00
package.json 1.4.2 2025-01-01 00:10:44 +09:00
pnpm-lock.yaml fix: revision retrive method 2024-12-31 23:28:16 +09:00
README.md fix: readme 2022-09-26 00:09:15 +09:00
tsconfig.json Initial commit 2022-09-25 23:59:33 +09:00

pm2-auto-update

Installation

pm2 set @pikokr/pm2-auto-update:port 9876 # You can use other port
pm2 set @pikokr/pm2-auto-update:secret abcdef # Use a stronger secret

pm2 install @pikokr/pm2-auto-update

Then, go to the webhook settings and set the following fields:

Field Value
Payload URL http://host:port
Secret The secret you previously set

Setup in your project

Install script

This project automatically runs install when you have changed package.json. You can customize the command to run if package.json is changed. For example, you can use yarn instead of npm.

You can simply set the autoReloadInstall script on your package.json.