feat: rebuild theme on web settings changed
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user