Run pgpartition when running DB migrations
This commit is contained in:
1 parent
de9c54af32
commit
7f805dc371
4 files changed
+12
-2
No files matched your search
@@ -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
|
||||
Executable
+7
@@ -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
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env sh
|
||||
bin/run-uwsgi.sh
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user