Make the demo listen on both HTTP and HTTPS ports

paul/schema_breaking_changes
Erik Johnston 2014-09-02 10:51:42 +01:00
parent 45570e4695
commit 0393e87519
1 changed files with 5 additions and 3 deletions

View File

@ -11,12 +11,14 @@ mkdir -p demo/etc
for port in 8080 8081 8082; do
echo "Starting server on port $port... "
https_port=$((port + 400))
python -m synapse.app.homeserver \
--generate-config \
--config-path "demo/etc/$port.config" \
-H "localhost:$port" \
-p "$port" \
-H "localhost:$port" \
-p "$https_port" \
--unsecure-port "$port" \
-H "localhost:$https_port" \
-f "$DIR/$port.log" \
-d "$DIR/$port.db" \
-D --pid-file "$DIR/$port.pid" \