2022-04-20 12:30:03 +02:00
|
|
|
import { bootstrap } from "global-agent"
|
2023-01-11 20:07:01 +01:00
|
|
|
import { checkDevelopmentEnvironment } from "./utilities/fileSystem"
|
2020-06-15 18:06:54 +02:00
|
|
|
|
2021-03-19 15:43:41 +01:00
|
|
|
function runServer() {
|
|
|
|
// this will shutdown the system if development environment not ready
|
|
|
|
// will print an error explaining what to do
|
|
|
|
checkDevelopmentEnvironment()
|
2023-10-03 23:45:39 +02:00
|
|
|
|
2022-04-20 12:30:03 +02:00
|
|
|
// this will setup http and https proxies form env variables
|
2022-09-09 23:33:52 +02:00
|
|
|
process.env.GLOBAL_AGENT_FORCE_GLOBAL_AGENT = "false"
|
2022-04-20 12:30:03 +02:00
|
|
|
bootstrap()
|
2020-07-16 15:27:27 +02:00
|
|
|
require("./app")
|
2020-06-15 18:06:54 +02:00
|
|
|
}
|
|
|
|
|
2020-07-16 16:19:46 +02:00
|
|
|
runServer()
|