From 88305a7dbd5bbca3dfaca3f0216e0893e5865e5a Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 27 Dec 2023 04:35:09 +0000 Subject: [PATCH] Add app.sh --- app.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app.sh diff --git a/app.sh b/app.sh new file mode 100644 index 0000000..2773689 --- /dev/null +++ b/app.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# Check if TEST_MODE is set to "true" +if [ "$TEST_MODE" = "true" ]; then + echo "Running tests..." + npm test +else + # Normal startup + # Generate config.js from environment variables + cat > config.js <