浏览代码

Add instructions to wait for `docker compose up` to complete

Matt Westcott 2 年之前
父节点
当前提交
274bba1279
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      readme.md

+ 9 - 0
readme.md

@@ -92,7 +92,16 @@ Run the following commands:
 git clone https://github.com/wagtail/bakerydemo.git
 cd bakerydemo
 docker compose up --build -d
+```
+
+Wait 10 seconds for the database setup to complete. Then run:
+
+```bash
 docker compose run app /venv/bin/python manage.py load_initial_data
+```
+If this fails with a database error, wait 10 more seconds and re-try. Finally, run:
+
+```bash
 docker compose up
 ```