Add dev.sh

Used to run the server during development. Uses entr which will restart the server when writing changes to any .py file
This commit is contained in:
Peder Bergebakken Sundt 2018-03-05 21:43:58 +01:00
parent b3a2a1fb78
commit 87e477935a
2 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,7 @@ password = None
standalone = False
# Defines whether the browser should be opened automatically at startup
start_browser = True
start_browser = False
# Multipe instance. If True, multiple clients that connects to your script has different App instances
multiple_instance = False

7
dev.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if ! which entr > /dev/null; then
echo "entr is not installed, aborting..."
exit 1
fi
find . -name "*.py" | entr -r ./main.py