2023-03-02 19:21:45 +01:00
|
|
|
import { checkDockerConfigured, checkInitComplete, handleError } from "./utils"
|
|
|
|
import { info } from "../utils"
|
|
|
|
import compose from "docker-compose"
|
2022-09-28 20:11:22 +02:00
|
|
|
|
2023-03-02 19:21:45 +01:00
|
|
|
export async function status() {
|
2022-09-28 20:11:22 +02:00
|
|
|
await checkDockerConfigured()
|
|
|
|
checkInitComplete()
|
|
|
|
console.log(info("Budibase status"))
|
|
|
|
await handleError(async () => {
|
|
|
|
const response = await compose.ps()
|
|
|
|
console.log(response.out)
|
|
|
|
})
|
|
|
|
}
|