From c4838e8975a482f79d5fd8922036101e75dc0d12 Mon Sep 17 00:00:00 2001 From: Type-Style Date: Tue, 3 Sep 2024 20:43:17 +0200 Subject: [PATCH] [TEMP] #123, repair test cases --- .github/workflows/main.yml | 2 +- src/app.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 269894e..fb958b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,7 +28,7 @@ jobs: - name: Start server run: | sudo NODE_ENV=$NODE_ENV KEY=$KEY USER_TEST=$USER_TEST npm start & - sleep 16 # Give server some time to start + sleep 15 # Give server some time to start - name: Check if server is running run: | curl --fail http://localhost:80 || exit 1 diff --git a/src/app.ts b/src/app.ts index 20bc2df..ea10aaa 100644 --- a/src/app.ts +++ b/src/app.ts @@ -78,6 +78,8 @@ app.use(error.handler); // init server const server = app.listen(80, () => { logger.log(`Server running //localhost:80, ENV: ${process.env.NODE_ENV}`, true); + logger.log(`KEY: ${process.env.KEY}`, true); + logger.log(`USER_TEST: ${process.env.USER_TEST}`, true); }); // scheduled cleanup