Skip to content

Commit

Permalink
Rename App Version env
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatanaatos committed Dec 25, 2023
1 parent c35a2b1 commit 7120945
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const checkAppVersion = (
res: Response,
next: NextFunction,
) => {
const version = process.env.REQUIRED_APP_VERSION;
const version = process.env.APP_VERSION;
if (!version) {
debug('No app version set in environment variables!');
next();
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5432:5432"
- '5432:5432'
volumes:
- data:/var/lib/postgresql/data
restart: always
Expand All @@ -16,9 +16,9 @@ services:
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}
ADMIN_TOKEN: ${ADMIN_TOKEN}
APP_VERSION: "0.0.1"
APP_VERSION: ${APP_VERSION}
ports:
- "3000:3000"
- '3000:3000'
depends_on:
- database
volumes:
Expand All @@ -28,7 +28,7 @@ services:
admin-panel:
image: joonatanaatos/kuka-soittaa-admin-panel:latest
ports:
- "8080:8080"
- '8080:8080'
restart: always

volumes:
Expand Down

0 comments on commit 7120945

Please sign in to comment.