Skip to content

Commit e6953fb

Browse files
Added vebugging to check where nestjs process is making it to in docker.
1 parent c861a1d commit e6953fb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ echo -e "${BLUE}🚀 Starting NestJS application...${NC}"
4848
# 'exec "$@"' replaces the shell process with the given command,
4949
# ensuring it becomes the main process (PID 1) and receives signals correctly.
5050
exec "$@"
51+
52+
echo -e "${RED}🚀 NestJS Application Process Exited...${NC}"

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ async function bootstrap(): Promise<void> {
162162
// ===================================
163163
const portEnv = process.env.PORT ?? nestConfig.port ?? '3000';
164164
const port = Number.parseInt(String(portEnv), 10);
165+
console.log(`🛫 CodeBuilder API app taking off listening on http://localhost:${port}`);
166+
165167

166168
if (Number.isNaN(port)) {
167169
throw new Error(`PORT environment variable is not a valid number: "${portEnv}"`);

0 commit comments

Comments
 (0)