Spaces:
Sleeping
Sleeping
File size: 343 Bytes
68a4a06 ab6b332 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash
# start nginx
service nginx start
# start the processes
python -m http.server --directory ./static --bind 0.0.0.0 8000 & echo $! > http_server.pid
python api.py & echo $!> api.pid
python app.py # blocking
# when unblocked, kill other processes and clean up
pkill -F http_server.pid
pkill -F api.pid
rm http_server.pid
rm api.pid |