chore: pass port to cio-api
This commit is contained in:
@@ -10,7 +10,7 @@ import { showRoutes } from 'hono/dev';
|
|||||||
const port = env.PORT ? parseInt(env.PORT) : 3002;
|
const port = env.PORT ? parseInt(env.PORT) : 3002;
|
||||||
|
|
||||||
function startServer() {
|
function startServer() {
|
||||||
console.log('Starting server...');
|
console.log('Starting server on port:', port);
|
||||||
|
|
||||||
serve({ fetch: app.fetch, port });
|
serve({ fetch: app.fetch, port });
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ RUN pnpm build --filter @cio/api
|
|||||||
|
|
||||||
EXPOSE 3081
|
EXPOSE 3081
|
||||||
|
|
||||||
|
ENV PORT=3081 \
|
||||||
|
NODE_ENV=production
|
||||||
|
|
||||||
RUN ls -la
|
RUN ls -la
|
||||||
|
|
||||||
CMD ["pnpm", "api:start"]
|
CMD ["pnpm", "api:start"]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
api:
|
api:
|
||||||
image: classroomio/api:0.1.12
|
image: classroomio/api:0.1.13
|
||||||
ports:
|
ports:
|
||||||
- "3081:3081"
|
- "3081:3081"
|
||||||
environment:
|
environment:
|
||||||
@@ -31,7 +31,7 @@ services:
|
|||||||
- REDIS_URL=${REDIS_URL}
|
- REDIS_URL=${REDIS_URL}
|
||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
image: classroomio/dashboard:0.1.12
|
image: classroomio/dashboard:0.1.13
|
||||||
ports:
|
ports:
|
||||||
- "3082:3082"
|
- "3082:3082"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user