Comments.
This commit is contained in:
parent
91e16f7b69
commit
3b19c8410f
|
@ -20,11 +20,13 @@ import { startup } from "./startup"
|
||||||
let app: Koa, server: Server
|
let app: Koa, server: Server
|
||||||
|
|
||||||
async function start() {
|
async function start() {
|
||||||
|
// if API disabled, could run automations instead
|
||||||
if (apiEnabled()) {
|
if (apiEnabled()) {
|
||||||
const koa = createKoaApp()
|
const koa = createKoaApp()
|
||||||
app = koa.app
|
app = koa.app
|
||||||
server = koa.server
|
server = koa.server
|
||||||
}
|
}
|
||||||
|
// startup includes automation runner - if enabled
|
||||||
await startup(app, server)
|
await startup(app, server)
|
||||||
if (env.isProd()) {
|
if (env.isProd()) {
|
||||||
env._set("NODE_ENV", "production")
|
env._set("NODE_ENV", "production")
|
||||||
|
|
Loading…
Reference in New Issue