Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paring-chan/pm2-auto-update
Automatically pull and reload pm2 process with github webhook
https://github.com/paring-chan/pm2-auto-update
Last synced: about 2 months ago
JSON representation
Automatically pull and reload pm2 process with github webhook
- Host: GitHub
- URL: https://github.com/paring-chan/pm2-auto-update
- Owner: paring-chan
- Created: 2022-09-25T14:59:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:31:03.000Z (about 1 year ago)
- Last Synced: 2024-06-27T17:32:10.313Z (6 months ago)
- Language: TypeScript
- Size: 62.5 KB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pm2-auto-update
## Installation
```bash
pm2 set @pikokr/pm2-auto-update:port 9876 # You can use other port
pm2 set @pikokr/pm2-auto-update:secret abcdef # Use a stronger secretpm2 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.