mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
chore(pockethost): refactor GobotCommand to PocketBaseCommand
This commit is contained in:
parent
aa94c86b78
commit
a22db32e08
@ -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`,
|
||||
|
@ -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()
|
||||
})
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user