Skip to content

Commit 03a38e3

Browse files
committed
Add build option to docker-compose up and wait for postgres to start
docker/compose#374 docker/compose#693
1 parent debc48d commit 03a38e3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ The steps here only need to be run once.
3838

3939
1. Bring up the development services
4040

41-
docker-compose up
41+
docker-compose up --build
42+
43+
The `--build` option ensures any new dependencies are included.
4244

4345
1. Open the development API
4446

bin/start-api

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3-
pip install -r requirements.txt -U
3+
# Wait for postgres to start
4+
# https://github.com/docker/compose/issues/374
5+
sleep 3
6+
47
python manage.py migrate
58
gunicorn gettingstarted.wsgi --log-file - --reload --workers 2

0 commit comments

Comments
 (0)