chore(pockethost): refactor GobotCommand to PocketBaseCommand

This commit is contained in:
Ben Allfree 2024-08-05 15:15:08 +00:00
parent aa94c86b78
commit a22db32e08
4 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,9 @@ module.exports = {
script: 'pnpm prod:cli mothership mirror serve',
},
{
name: `gobot`,
name: `pocketbase-update`,
restart_delay: 60 * 60 * 1000, // 1 hour
script: 'pnpm prod:cli gobot update',
script: 'pnpm prod:cli pocketbase update',
},
{
name: `health`,

View File

@ -3,7 +3,7 @@ import { freshenPocketbaseVersions } from './freshenPocketbaseVersions'
export const UpdateCommand = () => {
const cmd = new Command(`update`)
.description(`Update all Gobot dependencies`)
.description(`Update PocketBase versions`)
.action(async (options) => {
await freshenPocketbaseVersions()
})

View File

@ -2,7 +2,7 @@ import { Command } from 'commander'
import { UpdateCommand } from './UpdateCommand'
export const GobotCommand = () => {
const cmd = new Command(`gobot`).description(`Gobot commands`)
const cmd = new Command(`pocketbase`).description(`PocketBase commands`)
cmd.addCommand(UpdateCommand())
return cmd