Skip to content

Commit

Permalink
Fix migrate on single instance local db
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisumit33 committed Oct 1, 2023
1 parent 322aace commit aa67582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ebextensions/django.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ option_settings:
container_commands:
01_migrate:
command: "source /var/app/venv/*/bin/activate && python manage.py migrate"
leader_only: true
# For single instance local db, migrate is required every time an instance is launched
# leader_only: true
02_collectstatic:
command: "source /var/app/venv/*/bin/activate && python manage.py collectstatic --noinput"

0 comments on commit aa67582

Please sign in to comment.