2022-04-20 22:30:03 +12:00
|
|
|
import { bootstrap } from "global-agent"
|
2020-07-14 20:10:01 +12:00
|
|
|
const fixPath = require("fix-path")
|
2021-03-20 03:43:41 +13:00
|
|
|
const { checkDevelopmentEnvironment } = require("./utilities/fileSystem")
|
2020-06-16 04:06:54 +12:00
|
|
|
|
2021-03-20 03:43:41 +13: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()
|
2022-04-20 22:30:03 +12:00
|
|
|
// this will setup http and https proxies form env variables
|
|
|
|
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()
|