Config refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Context, Effect, Layer, Runtime } from "effect"
|
||||
import { Server } from "node:http"
|
||||
import { httpPort } from "../config"
|
||||
import { ServerConfig } from "../ServerConfig"
|
||||
import { ExpressApp } from "./ExpressApp"
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export module ExpressHTTPServer {
|
||||
)
|
||||
|
||||
const app = yield* ExpressApp
|
||||
const port = yield* httpPort
|
||||
const port = yield* ServerConfig.httpPort
|
||||
|
||||
return app.listen(port, () => runSync(Effect.logInfo(`HTTP server listening on ${ port }`)))
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user