Skip to content

Commit

Permalink
[TM-1312] Dump the process env in the boot log.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Oct 15, 2024
1 parent ac47ae3 commit cd8bc61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
docker build -t terramatch-microservices-base:nx-base .
: # Each service we add will get a separate build line here
USER_SERVICE_IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:user-service-$IMAGE_TAG
NODE_ENV=${{ env.NODE_ENV }} docker build -f apps/user-service/Dockerfile -t $USER_SERVICE_IMAGE .
docker build --build-arg NODE_ENV=${{ env.NODE_ENV }} -f apps/user-service/Dockerfile -t $USER_SERVICE_IMAGE .
docker push $USER_SERVICE_IMAGE
echo "image=$USER_SERVICE_IMAGE" >> $GITHUB_OUTPUT
echo "image=$USER_SERVICE_IMAGE"
Expand Down
2 changes: 1 addition & 1 deletion apps/user-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function bootstrap() {

const port = process.env.NODE_ENV === 'production' ? 80 : 4010;
await app.listen(port);
Logger.log(`Terramatch User Service is running on: http://localhost:${port}`);
Logger.log(`Terramatch User Service is running on: http://localhost:${port} ${JSON.stringify(process.env)}`);
}

bootstrap();

0 comments on commit cd8bc61

Please sign in to comment.