Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
583 B

const app = require("./app")
const buildAppContext = require("./initialise/buildAppContext")
const process = require("process")
let configIsNext = false
let configPath = "./config"
for (let arg of process.argv) {
if (arg === "-c") {
configIsNext = true
}
if (configIsNext) {
configPath = arg
}
}
const config = require(configPath)
;(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}`)
})
})()