budibase/packages/server/src/index.js

13 lines
343 B
JavaScript
Raw Normal View History

2020-06-15 18:06:54 +02:00
const { resolve } = require("path")
async function runServer() {
const budibaseDir = "~/.budibase";
process.env.BUDIBASE_DIR = resolve(budibaseDir)
const server = await require("./app")();
server.on("close", () => console.log("Server Closed"))
console.log(`Budibase running on ${JSON.stringify(server.address())}`)
}
runServer();