Run pgpartition when running DB migrations

This commit is contained in:
David Burke committed 2024-05-24 09:04:34 -04:00
1 parent de9c54af32
commit 7f805dc371
4 files changed
+12 -2

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
./manage.py migrate && ./manage.py runserver 0.0.0.0:8080
bin/run-migrate.sh
./manage.py runserver 0.0.0.0:8080
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
echo "Run Django migrations"
./manage.py migrate
echo "Create and delete Postgres partitions"
./manage.py pgpartition --yes
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
bin/run-uwsgi.sh
+1 -1
View File
@@ -11,7 +11,7 @@ esac
case $SERVER_ROLE in
web)
SCRIPT="./bin/run-uwsgi.sh"
SCRIPT="./bin/run-web.sh"
;;
worker)
SCRIPT="./bin/run-celery.sh"