Skip to content

Commit

Permalink
Update docker_start.sh
Browse files Browse the repository at this point in the history
Taken from open_zaak Dockerfile
  • Loading branch information
alextreme authored Jul 5, 2024
1 parent ab1950d commit e0c0cab
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ done
>&2 echo "Apply database migrations"
python src/manage.py migrate

# Load any JSON fixtures present
if [ -d $fixtures_dir ]; then
echo "Loading fixtures from $fixtures_dir"

for fixture in $(ls "$fixtures_dir/"*.json)
do
echo "Loading fixture $fixture"
python src/manage.py loaddata $fixture
done
fi

# Start server
>&2 echo "Starting server"
exec uwsgi \
Expand Down

0 comments on commit e0c0cab

Please sign in to comment.