diff options
author | Mark Haines <mjark@negativecurvature.net> | 2015-05-01 14:04:39 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2015-05-01 14:04:39 +0100 |
commit | 7b50769eb95e61e9ae85ad46e5a387a64b68a3a7 (patch) | |
tree | f98784f34d5f0246aee6fcec7fabba20cd8cb27f /demo/start.sh | |
parent | No id field on user (diff) | |
parent | Allow generate-config to run against an existing config file to generate defa... (diff) | |
download | synapse-7b50769eb95e61e9ae85ad46e5a387a64b68a3a7.tar.xz |
Merge pull request #136 from matrix-org/markjh/config_cleanup
Config restructuring.
Diffstat (limited to 'demo/start.sh')
-rwxr-xr-x | demo/start.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/demo/start.sh b/demo/start.sh index 0485be8053..5b3daef57f 100755 --- a/demo/start.sh +++ b/demo/start.sh @@ -16,30 +16,30 @@ if [ $# -eq 1 ]; then fi fi +export PYTHONPATH=$(readlink -f $(pwd)) + + +echo $PYTHONPATH + for port in 8080 8081 8082; do echo "Starting server on port $port... " https_port=$((port + 400)) + mkdir -p demo/$port + pushd demo/$port + #rm $DIR/etc/$port.config python -m synapse.app.homeserver \ --generate-config \ - --config-path "demo/etc/$port.config" \ - -p "$https_port" \ - --unsecure-port "$port" \ -H "localhost:$https_port" \ - -f "$DIR/$port.log" \ - -d "$DIR/$port.db" \ - -D --pid-file "$DIR/$port.pid" \ - --manhole $((port + 1000)) \ - --tls-dh-params-path "demo/demo.tls.dh" \ - --media-store-path "demo/media_store.$port" \ - $PARAMS $SYNAPSE_PARAMS \ - --enable-registration + --config-path "$DIR/etc/$port.config" \ python -m synapse.app.homeserver \ - --config-path "demo/etc/$port.config" \ + --config-path "$DIR/etc/$port.config" \ + -D \ -vv \ + popd done cd "$CWD" |