Skip to content

Commit

Permalink
Make sass-watch script work with webpack
Browse files Browse the repository at this point in the history
Works in the same fashion as it did with setuptools. To be improved/replaced with webpack's plugins and features
  • Loading branch information
podliashanyk committed Mar 4, 2024
1 parent 0a6404d commit 36a822e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tools/docker/sass-watch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
cd /source
while inotifywait -e modify -e move -e create -e delete -r --exclude \# /source/python/nav/web/sass
do
python3 setup.py build_sass
(cd python/nav/web/static/js && npm run build:sass:prod)
done
12 changes: 6 additions & 6 deletions tools/docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ command = /source/tools/docker/nav-start.sh
autorestart = false
startsecs = 0

; [program:sass-watcher]
; user = nav
; command = /source/tools/docker/sass-watch.sh
; stdout_logfile = /var/log/supervisor/%(program_name)s.log
; redirect_stderr=true
; autorestart = true
[program:sass-watcher]
user = nav
command = /source/tools/docker/sass-watch.sh
stdout_logfile = /var/log/supervisor/%(program_name)s.log
redirect_stderr=true
autorestart = true

0 comments on commit 36a822e

Please sign in to comment.