Skip to content

Commit

Permalink
ci: try to deploy server
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormix committed Nov 10, 2023
1 parent 8f04d5e commit 0b597ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ COPY --from=prerelease /usr/src/app/package.json .

# run the app
USER bun
EXPOSE 9000/tcp

ENTRYPOINT [ "bun", "run", "index.ts" ]
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type WebSocket = ServerWebSocket<{ id: string }>
const main = async () => {
const clients: Record<string, WebSocket> = {}
Bun.serve({
port: env.PORT ?? 3000,
port: env.PORT ?? 9000,
fetch(req, server) {
// upgrade the request to a WebSocket
if (
Expand Down

0 comments on commit 0b597ed

Please sign in to comment.