budibase/packages/server/scripts/selfhost.js

9 lines
211 B
JavaScript
Raw Permalink Normal View History

2021-09-14 13:21:16 +02:00
#!/usr/bin/env node
const updateDotEnv = require("update-dotenv")
const arg = process.argv.slice(2)[0]
updateDotEnv({
SELF_HOSTED: arg === "enable" ? "1" : "0",
}).then(() => console.log("Updated server!"))