diff --git a/.env.example b/.env.example index 87da5f5..746bea8 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ DB_HOST="10.5.0.5" -DB_PORT=3306 +DB_PORT="3306" DB_USER="root" DB_PASSWORD="iloveaidxnfun123" DB_NAME="aidxnfun" \ No newline at end of file diff --git a/manage b/manage index 53d9270..908526a 100755 --- a/manage +++ b/manage @@ -197,13 +197,8 @@ function restart_server() { echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}" echo "This may require your sudo password" sudo docker compose up -d - - echo "Waiting for the db at $DB_HOST:$DB_PORT to be available..." - while ! check_db; do - sleep 2 - echo "Still waiting for the database..." - done - + echo -e "${COLOR_BLUE}Waiting 30 seconds for database startup...${COLOR_RESET}" + sleep 30 echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" fi @@ -241,13 +236,8 @@ function start_server() { echo -e "${COLOR_BLUE}Starting database...${COLOR_RESET}" echo "This may require your sudo password" sudo docker compose up -d - - echo "Waiting for the db at $DB_HOST:$DB_PORT to be available..." - while ! check_db; do - sleep 2 - echo "Still waiting for the database..." - done - + echo -e "${COLOR_BLUE}Waiting 30 seconds for database startup...${COLOR_RESET}" + sleep 30 echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" fi