run_server.sh 157 B

12345678910111213
  1. #!/bin/bash
  2. python3 sitegen.py --with-index --watch &
  3. gen=$!
  4. sleep 1
  5. cd build
  6. python3 -m http.server 8001 &
  7. srv=$!
  8. trap "kill $gen; kill $srv" EXIT
  9. wait