Add dev stop command
This commit is contained in:
parent
c52bc7c382
commit
29ed447c5e
7
dev.sh
7
dev.sh
|
@ -7,11 +7,16 @@ run () {
|
||||||
find . -name __pycache__ -o -name "*.pyc" -delete
|
find . -name __pycache__ -o -name "*.pyc" -delete
|
||||||
sudo iptables -I INPUT -p tcp --dport $WEBPORT -j ACCEPT
|
sudo iptables -I INPUT -p tcp --dport $WEBPORT -j ACCEPT
|
||||||
printf "\n---\n webserver: http://$(hostname -f):$WEBPORT\n---\n"
|
printf "\n---\n webserver: http://$(hostname -f):$WEBPORT\n---\n"
|
||||||
overmind start
|
overmind start -D
|
||||||
}
|
}
|
||||||
tasks["run"]=run
|
tasks["run"]=run
|
||||||
tasks["start"]=run
|
tasks["start"]=run
|
||||||
|
|
||||||
|
stop () {
|
||||||
|
overmind quit
|
||||||
|
}
|
||||||
|
tasks["stop"]=stop
|
||||||
|
|
||||||
setup () {
|
setup () {
|
||||||
overmind start -l db -D
|
overmind start -l db -D
|
||||||
if [ -f .direnv/first_run ]; then
|
if [ -f .direnv/first_run ]; then
|
||||||
|
|
Loading…
Reference in New Issue