allow queue worker process to hot reload if entr is available

This commit is contained in:
dandds
2018-10-16 09:54:49 -04:00
parent 6a2a7545ae
commit f13cc03d24
3 changed files with 16 additions and 1 deletions

11
script/dev_queue Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# script/dev_queue: Run the queue with entr if available
set -e
if [[ `command -v entr` ]]; then
find atst | entr -r flask rq worker
else
flask rq worker
fi