From 91d126e56aa309dfdabb4f6bea264ef2417a4b62 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Wed, 16 Jul 2025 03:14:22 +0000 Subject: [PATCH] Attempt to fix environment mess --- .env.test | 13 +++++++++++++ docker-compose.yml | 2 ++ docker-entrypoint.sh | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .env.test diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..209d589 --- /dev/null +++ b/.env.test @@ -0,0 +1,13 @@ +APP_PORT=8091 +ESLINT_NO_DEV_ERRORS=true +PANEL_URL=https://qa-panel.mermsemr.com + +# auth routes +NEXT_PUBLIC_LOGIN_URL=https://qa-panel.mermsemr.com +NEXT_PUBLIC_SIGNUP_URL=https://qa-panel.mermsemr.com/auth/signup + +# social links +NEXT_PUBLIC_FACEBOOK_URL=https://www.facebook.com/people/Mermsemr/100066498622246/ +NEXT_PUBLIC_TWITTER_URL=# +NEXT_PUBLIC_INSTAGRAM_URL=# +NEXT_PUBLIC_YOUTUBE_URL=# \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c37117e..8df2e40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,5 +20,7 @@ services: - backend.wrenchboard.api.test:10.10.33.15 tty: true stdin_open: true + environment: + - NODE_ENV=${NODE_ENV:-test} volumes: src: diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c742827..67963a7 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh set -e +echo "NODE_ENV=$NODE_ENV" # Run command with node if the first argument contains a "-" or is not a system command. The last # part inside the "{}" is a workaround for the following bug in ash/dash: # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 @@ -8,4 +9,4 @@ if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && set -- node "$@" fi -exec "$@" \ No newline at end of file +exec "$@"