16 lines
453 B
TypeScript
16 lines
453 B
TypeScript
import { bootstrap } from "global-agent"
|
|
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()
|
|
|
|
// this will setup http and https proxies form env variables
|
|
process.env.GLOBAL_AGENT_FORCE_GLOBAL_AGENT = "false"
|
|
bootstrap()
|
|
require("./app")
|
|
}
|
|
|
|
runServer()
|