Skip to content

Commit

Permalink
chore(Build): Change the way NODE_ENV env variable is passed to the b…
Browse files Browse the repository at this point in the history
…ackoffice and update pnpm lock file
  • Loading branch information
alepefe committed Jan 7, 2025
1 parent fe70a91 commit 0a1253b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ jobs:
backoffice:
image: $ECR_REGISTRY/$ECR_REPOSITORY_ADMIN:$IMAGE_TAG
restart: always
environment:
NODE_ENV: production
ports:
- 1000:1000
nginx:
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ services:
depends_on:
- database

admin:
backoffice:
container_name: blue-carbon-cost-admin
environment:
DB_HOST: database
NODE_ENV: development
build:
context: .
dockerfile: admin/Dockerfile
dockerfile: backoffice/Dockerfile
ports:
- "1000:1000"
networks:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"api:dev": "pnpm --filter api run start:dev",
"api:build": "pnpm --filter api run build",
"api:prod": "NODE_ENV=production pnpm --filter api run start:prod",
"backoffice:prod": "NODE_ENV=production pnpm --filter backoffice run start:prod",
"backoffice:prod": "pnpm --filter backoffice run start:prod",
"client:deps": "pnpm --filter client install",
"client:dev": "pnpm --filter client run dev",
"client:build": "pnpm --filter client run build",
Expand Down
50 changes: 23 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a1253b

Please sign in to comment.