22 lines
485 B
Bash
Executable File
22 lines
485 B
Bash
Executable File
#!/bin/sh
|
|
echo "Delete Old Migrations"
|
|
find ./inventory -type f -iname "000*.py" -delete
|
|
|
|
echo "Delete Old Cache"
|
|
find ./car_inventory -type d -iname "__pycache__"|xargs rm -rf
|
|
find ./inventory -type d -iname "__pycache__"|xargs rm -rf
|
|
|
|
echo "Apply Base Migrate"
|
|
python3 manage.py migrate
|
|
|
|
echo "Apply Make Migratinos"
|
|
python3 manage.py makemigrations
|
|
|
|
echo "Apply Final Migrate"
|
|
python3 manage.py migrate
|
|
|
|
echo "Collect Static"
|
|
python3 manage.py collectstatic --no-input
|
|
|
|
echo "Done"
|