chore: support relative parent env file paths in deploy.sh

This commit is contained in:
Hamza-Ayed
2026-05-28 15:06:36 +03:00
parent 035a0f3a7e
commit ec43408ad9

View File

@@ -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