add upgrade script
This commit is contained in:
parent
4f4c9979da
commit
5c773cde1b
2 changed files with 18 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% if user.featured_collections %}
|
{% if user.featured_collections.all %}
|
||||||
<div class="relation-dropdown__body">
|
<div class="relation-dropdown__body">
|
||||||
<div class="aside-section-wrapper aside-section-wrapper--transparent aside-section-wrapper--collapse">
|
<div class="aside-section-wrapper aside-section-wrapper--transparent aside-section-wrapper--collapse">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
17
misc/upgrade.sh
Executable file
17
misc/upgrade.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -f manage.py ] || exit
|
||||||
|
python3 manage.py migrate --plan
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
read -p "Do you wish to continue? (yes/no) " yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) break;;
|
||||||
|
[Nn]* ) exit;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
python3 manage.py sass common/static/sass/boofilsic.sass common/static/css/boofilsic.min.css -t compressed || exit $?
|
||||||
|
python3 manage.py sass common/static/sass/boofilsic.sass common/static/css/boofilsic.css || exit $?
|
||||||
|
python3 manage.py collectstatic --noinput || exit $?
|
||||||
|
python3 manage.py migrate || exit $?
|
||||||
|
python3 manage.py check
|
Loading…
Add table
Reference in a new issue