chore: pass port to cio-api

This commit is contained in:
Rotimi Best
2025-10-11 14:26:14 +01:00
parent f629aea625
commit 876a785b3c
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import { showRoutes } from 'hono/dev';
const port = env.PORT ? parseInt(env.PORT) : 3002;
function startServer() {
console.log('Starting server...');
console.log('Starting server on port:', port);
serve({ fetch: app.fetch, port });
+3
View File
@@ -26,6 +26,9 @@ RUN pnpm build --filter @cio/api
EXPOSE 3081
ENV PORT=3081 \
NODE_ENV=production
RUN ls -la
CMD ["pnpm", "api:start"]
+2 -2
View File
@@ -8,7 +8,7 @@ version: "3.8"
services:
api:
image: classroomio/api:0.1.12
image: classroomio/api:0.1.13
ports:
- "3081:3081"
environment:
@@ -31,7 +31,7 @@ services:
- REDIS_URL=${REDIS_URL}
dashboard:
image: classroomio/dashboard:0.1.12
image: classroomio/dashboard:0.1.13
ports:
- "3082:3082"
environment: