1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00
budibase/packages/server/src/index.ts
2023-01-11 19:07:01 +00:00

16 lines
500 B
TypeScript

import { bootstrap } from "global-agent"
const fixPath = require("fix-path")
import { checkDevelopmentEnvironment } from "./utilities/fileSystem"
function runServer() {
// this will shutdown the system if development environment not ready
// will print an error explaining what to do
checkDevelopmentEnvironment()
fixPath()
// this will setup http and https proxies form env variables
process.env.GLOBAL_AGENT_FORCE_GLOBAL_AGENT = "false"
bootstrap()
require("./app")
}
runServer()