Packaging fixes
This commit is contained in:
parent
fa6103d007
commit
959b06c425
19 changed files with 389 additions and 68 deletions
|
|
@ -1,5 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
django-admin makemigrations --noinput --check && django-admin migrate --noinput
|
||||
django-admin clear_cache
|
||||
django-admin collectstatic -c --no-input
|
||||
echo "Running makemigrations --check to make sure migrations are up to date..."
|
||||
django-admin makemigrations --noinput --check 2>&1
|
||||
|
||||
echo "Running migrate to apply migrations..."
|
||||
django-admin migrate --noinput 2>&1
|
||||
|
||||
echo "Clearing django cache..."
|
||||
django-admin clear_cache 2>&1
|
||||
|
||||
echo "Running collectstatic..."
|
||||
django-admin collectstatic -c --no-input 2>&1
|
||||
|
||||
echo "Deployed successfully!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue