1
0
Fork 0
mirror of synced 2024-06-23 08:30:31 +12:00
budibase/packages/server/src/index.ts

17 lines
505 B
TypeScript
Raw Normal View History

import { bootstrap } from "global-agent"
2020-07-14 20:10:01 +12:00
const fixPath = require("fix-path")
const { checkDevelopmentEnvironment } = require("./utilities/fileSystem")
2020-06-16 04:06:54 +12:00
function runServer() {
// this will shutdown the system if development environment not ready
// will print an error explaining what to do
checkDevelopmentEnvironment()
2020-07-14 20:10:01 +12:00
fixPath()
// this will setup http and https proxies form env variables
process.env.GLOBAL_AGENT_FORCE_GLOBAL_AGENT = "false"
bootstrap()
2020-07-17 01:27:27 +12:00
require("./app")
2020-06-16 04:06:54 +12:00
}
2020-07-17 02:19:46 +12:00
runServer()