chore(root): add gobot downloader scripts and pm2

This commit is contained in:
Ben Allfree 2024-06-06 01:47:19 +00:00
parent dc9f332aa7
commit ce464a1285
2 changed files with 8 additions and 1 deletions

View File

@ -26,6 +26,11 @@ module.exports = {
restart_delay: 60 * 60 * 1000, // 1 hour
script: 'pnpm prod:cli mothership update',
},
{
name: `downloader`,
restart_delay: 60 * 60 * 1000, // 1 hour
script: 'pnpm gobot:download',
},
{
name: `health`,
restart_delay: 60 * 1000, // 1 minute

View File

@ -30,7 +30,9 @@
"prod:cli": "tsx ./src/cli/index.ts",
"plop": "plop --no-progress",
"nofile": "cat /proc/sys/fs/file-nr",
"mail": "tsx ./src/cli/sendmail.ts"
"mail": "tsx ./src/cli/sendmail.ts",
"gobot:download": "gobot download pocketbase",
"gobot:download:all": "gobot download pocketbase --g-use-version='*'"
},
"prettier": {
"semi": false,