Skip to content

Commit

Permalink
explicit node env for server and mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-SO committed Dec 19, 2024
1 parent 9d9250a commit 1413abb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ services:
networks:
- traefik-public
- default
environment: *common-environment
environment:
NODE_ENV: staging
<<: *common-environment
deploy:
<<: *common-deploy
labels:
Expand Down Expand Up @@ -196,6 +198,7 @@ services:
volumes:
- mongodb_data:/data/db
environment:
NODE_ENV: staging
MONGO_INITDB_DATABASE: streameth-staging
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/db-password
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class App {
listen() {
this.app.listen(this.port, () => {
logger.info(`=================================`);
logger.info(`======= ENV: ${this.env} =======`);
logger.info(`======= ENV: ${this.env} ========`);
logger.info(`🚀 App listening on the port ${this.port}`);
logger.info(`=================================`);
});
Expand Down

0 comments on commit 1413abb

Please sign in to comment.