run_server.sh 147 B

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