1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
budibase/packages/cli/src/hosting/stop.ts

14 lines
443 B
TypeScript
Raw Normal View History

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."))
}