57 lines
753 B
Bash
Executable File
57 lines
753 B
Bash
Executable File
#!/bin/bash
|
|
|
|
##
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
##
|
|
|
|
reset
|
|
|
|
clear
|
|
|
|
##
|
|
|
|
docker-compose down --remove-orphans
|
|
|
|
docker-compose rm
|
|
|
|
docker-compose pull
|
|
|
|
docker-compose up -d
|
|
|
|
sleep 8
|
|
|
|
########
|
|
|
|
###docker-compose -f postgres.yaml pull
|
|
|
|
#python3 manage.py dumpdata
|
|
## This will IRREVERSIBLY DESTROY all data currently in the "maverickdb" database, and return each table to an empty state.
|
|
|
|
|
|
|
|
### python3 manage.py flush
|
|
|
|
### python3 manage.py sqlflush
|
|
|
|
#python3 manage.py sqlmigrate
|
|
|
|
##python3 manage.py sqlsequencereset
|
|
|
|
#python3 manage.py generateschema
|
|
|
|
|
|
|
|
python3 manage.py makemigrations
|
|
|
|
python3 manage.py migrate
|
|
|
|
#python3 manage.py squashmigrations bikes
|
|
|
|
#python3 manage.py optimizemigration
|
|
|
|
python3 manage.py runserver 0.0.0.0:8888
|