mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
* refactor(backend): types for global config I saw merge conflicts in these files for #8463 so let's get some parts of this PR into `master` already. I believe this fixes a small bug. They guard clause didn't ensure that all of REDIS_ configurations were set. * remove old email mechanism * refactor(backend: react to @ulfgebhardt's review See: https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8485#pullrequestreview-2813528327 * build(backend): optional commit @ulfgebhardt this is how I tested the configurations. We don't need to include this commit but I wouldn't expect to send out real emails from a `docker-compose` setup. --------- Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
14 lines
548 B
TypeScript
14 lines
548 B
TypeScript
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
|
|
|
import CONFIG from './config'
|
|
import createServer from './server'
|
|
|
|
const { server, httpServer } = createServer()
|
|
const url = new URL(CONFIG.GRAPHQL_URI)
|
|
httpServer.listen({ port: url.port }, () => {
|
|
/* eslint-disable-next-line no-console */
|
|
console.log(`🚀 Server ready at http://localhost:${url.port}${server.graphqlPath}`)
|
|
/* eslint-disable-next-line no-console */
|
|
console.log(`🚀 Subscriptions ready at ws://localhost:${url.port}${server.subscriptionsPath}`)
|
|
})
|