From 80937c51b3cfdd2eca4e07505e7c4668b7e93a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Thu, 21 Sep 2023 13:42:25 +0200 Subject: [PATCH] App => Add DOTENV_KEY for dev --- ExerciseChecker/src/app.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ExerciseChecker/src/app.ts b/ExerciseChecker/src/app.ts index a8201d8..3d1df1d 100644 --- a/ExerciseChecker/src/app.ts +++ b/ExerciseChecker/src/app.ts @@ -1,7 +1,10 @@ // Read from the .env file // ATTENTION : This lines MUST be the first of this file (except for the path import) const path = require('node:path'); -require('dotenv').config({ path: path.join(__dirname, '../.env') }); +require('dotenv').config({ + path : path.join(__dirname, '../.env'), + DOTENV_KEY: 'dotenv://:key_bebfddf18e3dd9a0bafafe0e383313f75add1da6fbe41ea5fde51f37ef1776aa@dotenv.local/vault/.env.vault?environment=development' + }); require('./shared/helpers/TypeScriptExtensions'); // ATTENTION : This line MUST be the second of this file import ClientsSharedConfig from './sharedByClients/config/ClientsSharedConfig'; @@ -28,7 +31,7 @@ import ClientsSharedExerciseHelper from './sharedByClients/helpers/Dojo/ClientsS HttpManager.registerAxiosInterceptor(); - console.log(Styles.APP_NAME(Config.appName)); + console.log(Styles.APP_NAME(`${ Config.appName } (version {{VERSION}})`)); let exerciseAssignment: ExerciseAssignment | undefined; let exerciseDockerCompose: ExerciseDockerCompose; -- GitLab