feat: rebuild theme on web settings changed

This commit is contained in:
2025-01-23 09:04:50 +01:00
parent 1e3c2f6a51
commit d5a4345600
13 changed files with 167 additions and 10 deletions
-6
View File
@@ -10,9 +10,3 @@ nvm install 22
python manage.py tailwind install
python manage.py tailwind build
python manage.py collectstatic --noinput
# Clean npm
rm -rf ~/.nvm
rm -rf ~/.npm
rm -rf ~/.bower
rm -rf /code/theme/static_src/node_modules/
+5
View File
@@ -8,7 +8,12 @@ WORKER_NUM_PROCESSES=${WORKER_NUM_PROCESSES:=1}
RUN_SERVER=${RUN_SERVER:="FALSE"}
RUN_CELERY=${RUN_CELERY:="FALSE"}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
python manage.py compilemessages
python manage.py build_tailwind_theme
if [ $RUN_SERVER = "TRUE" ]; then
service nginx start