You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
497 B

  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "$0" )" && pwd )"
  3. CWD=$(pwd)
  4. cd "$DIR/.."
  5. for port in "8080" "8081" "8082"; do
  6. echo "Starting server on port $port... "
  7. python -m synapse.app.homeserver \
  8. -p "$port" \
  9. -H "localhost:$port" \
  10. -f "$DIR/$port.log" \
  11. -d "$DIR/$port.db" \
  12. -vv \
  13. -D --pid-file "$DIR/$port.pid"
  14. done
  15. echo "Starting webclient on port 8000..."
  16. python "demo/webserver.py" -p 8000 -P "$DIR/webserver.pid" "webclient"
  17. cd "$CWD"