1
0
Fork 0
mirror of synced 2024-09-21 11:53:49 +12:00
budibase/packages/cli/src/hosting/stop.ts
2023-03-02 18:21:45 +00:00

13 lines
443 B
TypeScript

import { checkDockerConfigured, checkInitComplete, handleError } from "./utils"
import { info, success } from "../utils"
import compose from "docker-compose"
export async function stop() {
await checkDockerConfigured()
checkInitComplete()
console.log(info("Stopping services, this may take a moment."))
await handleError(async () => {
await compose.stop()
})
console.log(success("Services have been stopped successfully."))
}