From ec43408ad926463259a2bc2fa1c404aaca54c62a Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 28 May 2026 15:06:36 +0300 Subject: [PATCH] chore: support relative parent env file paths in deploy.sh --- voice-call-service/deploy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/voice-call-service/deploy.sh b/voice-call-service/deploy.sh index d757d1e..c95b124 100755 --- a/voice-call-service/deploy.sh +++ b/voice-call-service/deploy.sh @@ -7,10 +7,16 @@ echo "==========================================================" echo " Starting Deploy process for Intaleq Voice Call Backend" echo "==========================================================" -# 1. Check for configuration file +# 1. Check for configuration file in parent directories if [ -f ../.env ]; then echo "[+] Found .env file in parent directory. Copying to current directory..." cp ../.env .env +elif [ -f ../../.env ]; then + echo "[+] Found .env file in grandparent directory. Copying to current directory..." + cp ../../.env .env +elif [ -f ../../../.env ]; then + echo "[+] Found .env file in great-grandparent directory. Copying to current directory..." + cp ../../../.env .env fi if [ ! -f .env ]; then