Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianP8701 committed Sep 28, 2024
1 parent 9f4cf9d commit 5d6d871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"knip": "knip",
"db:seed": "ts-node src/cli/databaseSeed.ts",
"db:reset-and-seed": "ts-node src/cli/resetAndSeed.ts",
"start:prod": "node dist/server.js",
"start:prod": "node dist/graphql-server.js",
"start:prod:ws": "node dist/websocket-server.js",
"pre": "yarn lint && yarn build",
"post-build": "cd dist && yarn install && yarn prisma generate",
Expand Down
3 changes: 2 additions & 1 deletion server/src/websocket-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ app.get('/', (_req, res) => {
const startServer = async () => {
const httpServer = createServer(app)
const apolloServer = createApolloGqlServer(httpServer)
await apolloServer.start()

const {serverCleanup } = createApolloWsServer(httpServer, container)

Expand All @@ -69,6 +68,8 @@ const startServer = async () => {
},
})

await apolloServer.start()

httpServer.listen(PORT, () => {
logger.info(`Server is now running on http://localhost:${PORT}/graphql`)
})
Expand Down

0 comments on commit 5d6d871

Please sign in to comment.