Skip to content

Commit

Permalink
Migrate and load data before running the server
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhiek187 committed Feb 24, 2022
1 parent b314da2 commit 81480bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ version: "3.9"
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
command: >
sh -c "python manage.py migrate &&
python manage.py loaddata cards.json &&
python manage.py runserver 0.0.0.0:8000"
env_file:
- ./stockhelper/.env
volumes:
Expand Down

0 comments on commit 81480bd

Please sign in to comment.