further bug fixing

This commit is contained in:
lou 2024-10-15 18:14:09 -04:00
parent 736cde16c6
commit ccfd1f2656
2 changed files with 5 additions and 15 deletions

View File

@ -1,5 +1,5 @@
DB_HOST="10.5.0.5" DB_HOST="10.5.0.5"
DB_PORT=3306 DB_PORT="3306"
DB_USER="root" DB_USER="root"
DB_PASSWORD="iloveaidxnfun123" DB_PASSWORD="iloveaidxnfun123"
DB_NAME="aidxnfun" DB_NAME="aidxnfun"

18
manage
View File

@ -197,13 +197,8 @@ function restart_server() {
echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}" echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}"
echo "This may require your sudo password" echo "This may require your sudo password"
sudo docker compose up -d sudo docker compose up -d
echo -e "${COLOR_BLUE}Waiting 30 seconds for database startup...${COLOR_RESET}"
echo "Waiting for the db at $DB_HOST:$DB_PORT to be available..." sleep 30
while ! check_db; do
sleep 2
echo "Still waiting for the database..."
done
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi fi
@ -241,13 +236,8 @@ function start_server() {
echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}" echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}"
echo "This may require your sudo password" echo "This may require your sudo password"
sudo docker compose up -d sudo docker compose up -d
echo -e "${COLOR_BLUE}Waiting 30 seconds for database startup...${COLOR_RESET}"
echo "Waiting for the db at $DB_HOST:$DB_PORT to be available..." sleep 30
while ! check_db; do
sleep 2
echo "Still waiting for the database..."
done
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi fi