chore: support relative parent env file paths in deploy.sh
This commit is contained in:
@@ -7,10 +7,16 @@ echo "=========================================================="
|
|||||||
echo " Starting Deploy process for Intaleq Voice Call Backend"
|
echo " Starting Deploy process for Intaleq Voice Call Backend"
|
||||||
echo "=========================================================="
|
echo "=========================================================="
|
||||||
|
|
||||||
# 1. Check for configuration file
|
# 1. Check for configuration file in parent directories
|
||||||
if [ -f ../.env ]; then
|
if [ -f ../.env ]; then
|
||||||
echo "[+] Found .env file in parent directory. Copying to current directory..."
|
echo "[+] Found .env file in parent directory. Copying to current directory..."
|
||||||
cp ../.env .env
|
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
|
fi
|
||||||
|
|
||||||
if [ ! -f .env ]; then
|
if [ ! -f .env ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user