further bug fixing
This commit is contained in:
parent
736cde16c6
commit
ccfd1f2656
@ -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"
|
18
manage
18
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user