Skip to content

Commit 1413abb

Browse files
committed
explicit node env for server and mongodb
1 parent 9d9250a commit 1413abb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docker-compose.staging.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ services:
103103
networks:
104104
- traefik-public
105105
- default
106-
environment: *common-environment
106+
environment:
107+
NODE_ENV: staging
108+
<<: *common-environment
107109
deploy:
108110
<<: *common-deploy
109111
labels:
@@ -196,6 +198,7 @@ services:
196198
volumes:
197199
- mongodb_data:/data/db
198200
environment:
201+
NODE_ENV: staging
199202
MONGO_INITDB_DATABASE: streameth-staging
200203
MONGO_INITDB_ROOT_USERNAME: root
201204
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/db-password

packages/server/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class App {
3939
listen() {
4040
this.app.listen(this.port, () => {
4141
logger.info(`=================================`);
42-
logger.info(`======= ENV: ${this.env} =======`);
42+
logger.info(`======= ENV: ${this.env} ========`);
4343
logger.info(`🚀 App listening on the port ${this.port}`);
4444
logger.info(`=================================`);
4545
});

0 commit comments

Comments
 (0)