Add compile_themes to bw-dev

This commit is contained in:
Christof Dorner 2022-12-19 18:35:34 +01:00
parent f5ebdd4ba1
commit 8bb5c867eb
4 changed files with 11 additions and 0 deletions

7
bw-dev
View file

@ -92,6 +92,7 @@ case "$CMD" in
migrate migrate
migrate django_celery_beat migrate django_celery_beat
initdb initdb
runweb python manage.py compile_themes
runweb python manage.py collectstatic --no-input runweb python manage.py collectstatic --no-input
admin_code admin_code
;; ;;
@ -122,6 +123,9 @@ case "$CMD" in
prod_error prod_error
runweb pytest -n 3 --cov-report term-missing "$@" runweb pytest -n 3 --cov-report term-missing "$@"
;; ;;
compile_themes)
runweb python manage.py compile_themes
;;
collectstatic) collectstatic)
runweb python manage.py collectstatic --no-input runweb python manage.py collectstatic --no-input
;; ;;
@ -203,6 +207,7 @@ case "$CMD" in
docker-compose build docker-compose build
# ./update.sh # ./update.sh
runweb python manage.py migrate runweb python manage.py migrate
runweb python manage.py compile_themes
runweb python manage.py collectstatic --no-input runweb python manage.py collectstatic --no-input
docker-compose up -d docker-compose up -d
docker-compose restart web docker-compose restart web
@ -256,6 +261,7 @@ case "$CMD" in
migrate migrate
migrate django_celery_beat migrate django_celery_beat
initdb initdb
runweb python manage.py compile_themes
runweb python manage.py collectstatic --no-input runweb python manage.py collectstatic --no-input
admin_code admin_code
;; ;;
@ -283,6 +289,7 @@ case "$CMD" in
echo " dbshell" echo " dbshell"
echo " restart_celery" echo " restart_celery"
echo " pytest [path]" echo " pytest [path]"
echo " compile_themes"
echo " collectstatic" echo " collectstatic"
echo " makemessages" echo " makemessages"
echo " compilemessages [locale]" echo " compilemessages [locale]"

View file

@ -14,6 +14,7 @@ dbshell \
restart_celery \ restart_celery \
pytest \ pytest \
pytest_coverage_report \ pytest_coverage_report \
compile_themes \
collectstatic \ collectstatic \
makemessages \ makemessages \
compilemessages \ compilemessages \
@ -54,6 +55,7 @@ __bw_complete "$commands" "shell" "open the Python shell withi
__bw_complete "$commands" "dbshell" "open the database shell within the web container" __bw_complete "$commands" "dbshell" "open the database shell within the web container"
__bw_complete "$commands" "restart_celery" "restart the celery container" __bw_complete "$commands" "restart_celery" "restart the celery container"
__bw_complete "$commands" "pytest" "run unit tests" __bw_complete "$commands" "pytest" "run unit tests"
__bw_complete "$commands" "compile_themes" "compile themes css files"
__bw_complete "$commands" "collectstatic" "copy changed static files into the installation" __bw_complete "$commands" "collectstatic" "copy changed static files into the installation"
__bw_complete "$commands" "makemessages" "extract all localizable messages from the code" __bw_complete "$commands" "makemessages" "extract all localizable messages from the code"
__bw_complete "$commands" "compilemessages" "compile .po localization files to .mo" __bw_complete "$commands" "compilemessages" "compile .po localization files to .mo"

View file

@ -11,6 +11,7 @@ dbshell
restart_celery restart_celery
pytest pytest
pytest_coverage_report pytest_coverage_report
compile_themes
collectstatic collectstatic
makemessages makemessages
compilemessages compilemessages

View file

@ -13,6 +13,7 @@ dbshell
restart_celery restart_celery
pytest pytest
pytest_coverage_report pytest_coverage_report
compile_themes
collectstatic collectstatic
makemessages makemessages
compilemessages compilemessages