Updated socket connection code to support docker. Also updated dockerfile and entrypoint to support new file structure.

This commit is contained in:
Karmaa
2025-02-09 21:16:31 -06:00
parent f2918e02f6
commit 175225dcd7
4 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Start the backend server
node /src/backend/server.cjs &
node /app/src/backend/server.cjs &
# Start nginx in the foreground
exec nginx -g 'daemon off;'

View File

@@ -7,6 +7,7 @@ const io = socketIo(server, {
cors: {
origin: "*",
methods: ["GET", "POST"],
transports: ["polling", "websocket"],
},
});