comment
This commit is contained in:
parent
9edc4bd61b
commit
5940bf0b18
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ app.disable('x-powered-by');
|
||||||
|
|
||||||
await loadLoc(); // preload localization
|
await loadLoc(); // preload localization
|
||||||
|
|
||||||
|
// i don't like this at all
|
||||||
if (process.env.apiURL && process.env.apiPort && !((process.env.webURL && process.env.webPort) || (process.env.selfURL && process.env.port))) {
|
if (process.env.apiURL && process.env.apiPort && !((process.env.webURL && process.env.webPort) || (process.env.selfURL && process.env.port))) {
|
||||||
await runAPI(express, app, gitCommit, gitBranch, __dirname);
|
await runAPI(express, app, gitCommit, gitBranch, __dirname);
|
||||||
} else if (process.env.webURL && process.env.webPort && !((process.env.apiURL && process.env.apiPort) || (process.env.selfURL && process.env.port))) {
|
} else if (process.env.webURL && process.env.webPort && !((process.env.apiURL && process.env.apiPort) || (process.env.selfURL && process.env.port))) {
|
||||||
|
|
Loading…
Reference in a new issue