2019-06-14 11:05:46 +02:00
|
|
|
const app = require("./app");
|
|
|
|
const config = require("./config");
|
2019-07-09 08:29:50 +02:00
|
|
|
const buildAppContext = require("./initialise/buildAppContext");
|
2019-06-07 15:18:10 +02:00
|
|
|
|
2019-07-13 11:35:57 +02:00
|
|
|
(async () => {
|
|
|
|
const bbContext = await buildAppContext(config(), true);
|
|
|
|
const server = await app(bbContext);
|
|
|
|
server.on("listening", () => {
|
|
|
|
console.log(`Budibase Server listening on port ${bbContext.config.port}`);
|
|
|
|
})
|
|
|
|
})()
|