Skip to content

Commit

Permalink
feat: 在啟動過程中新增等待 MySQL 啟動的延遲
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshino committed Dec 16, 2024
1 parent a291e68 commit f2a75c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/traefik-run/001_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
"${COMPOSE_CMD[@]}" -f docker-compose.traefik.yml build
"${COMPOSE_CMD[@]}" -f docker-compose.traefik.yml up -d
"${COMPOSE_CMD[@]}" -f docker-compose.traefik.yml restart bot
# Wait for the MySQL to start
sleep 10
"${COMPOSE_CMD[@]}" -f docker-compose.traefik.yml exec -T bot yarn migrate

0 comments on commit f2a75c4

Please sign in to comment.