Add dev stop command

This commit is contained in:
Andreas Zweili 2023-07-22 17:24:15 +02:00
parent c52bc7c382
commit 29ed447c5e
1 changed files with 6 additions and 1 deletions

7
dev.sh
View File

@ -7,11 +7,16 @@ run () {
find . -name __pycache__ -o -name "*.pyc" -delete
sudo iptables -I INPUT -p tcp --dport $WEBPORT -j ACCEPT
printf "\n---\n webserver: http://$(hostname -f):$WEBPORT\n---\n"
overmind start
overmind start -D
}
tasks["run"]=run
tasks["start"]=run
stop () {
overmind quit
}
tasks["stop"]=stop
setup () {
overmind start -l db -D
if [ -f .direnv/first_run ]; then