mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
shift writeJwtKeyPairInHomeCommunity before invocation of app.listen
This commit is contained in:
parent
fe7802de16
commit
5643b16c7e
@ -11,6 +11,7 @@ async function main() {
|
||||
initLogging()
|
||||
const { app } = await createServer(getLogger('apollo'))
|
||||
|
||||
await writeJwtKeyPairInHomeCommunity()
|
||||
app.listen(CONFIG.PORT, () => {
|
||||
// biome-ignore lint/suspicious/noConsole: no need for logging the start message
|
||||
console.log(`Server is running at http://localhost:${CONFIG.PORT}`)
|
||||
@ -19,7 +20,6 @@ async function main() {
|
||||
console.log(`GraphIQL available at http://localhost:${CONFIG.PORT}`)
|
||||
}
|
||||
})
|
||||
await writeJwtKeyPairInHomeCommunity()
|
||||
await startValidateCommunities(Number(CONFIG.FEDERATION_VALIDATE_COMMUNITY_TIMER))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user