mirror of https://github.com/vector-im/riot-web
install synapse/develop (and deps) from pip
instead of getting dependencies from synapse/master and running synapse/develop from git downloadpull/21833/head
parent
3e6719e8ab
commit
7a15acf224
|
@ -16,11 +16,7 @@ if [ -d $BASE_DIR/$SERVER_DIR ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
|
mkdir -p $SERVER_DIR
|
||||||
mkdir -p installations/
|
|
||||||
curl https://codeload.github.com/matrix-org/synapse/zip/$SYNAPSE_BRANCH --output synapse.zip
|
|
||||||
unzip -q synapse.zip
|
|
||||||
mv synapse-$SYNAPSE_BRANCH $SERVER_DIR
|
|
||||||
cd $SERVER_DIR
|
cd $SERVER_DIR
|
||||||
virtualenv -p python3 env
|
virtualenv -p python3 env
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
|
@ -37,7 +33,9 @@ python -m synapse.app.homeserver \
|
||||||
--config-path homeserver.yaml \
|
--config-path homeserver.yaml \
|
||||||
--generate-config \
|
--generate-config \
|
||||||
--report-stats=no
|
--report-stats=no
|
||||||
|
pip install https://codeload.github.com/matrix-org/synapse/zip/$SYNAPSE_BRANCH
|
||||||
# apply configuration
|
# apply configuration
|
||||||
|
pushd env/bin/
|
||||||
cp -r $BASE_DIR/config-templates/$CONFIG_TEMPLATE/. ./
|
cp -r $BASE_DIR/config-templates/$CONFIG_TEMPLATE/. ./
|
||||||
|
|
||||||
# Hashes used instead of slashes because we'll get a value back from $(pwd) that'll be
|
# Hashes used instead of slashes because we'll get a value back from $(pwd) that'll be
|
||||||
|
@ -49,3 +47,5 @@ sed -i.bak "s#{{FORM_SECRET}}#$(uuidgen)#g" homeserver.yaml
|
||||||
sed -i.bak "s#{{REGISTRATION_SHARED_SECRET}}#$(uuidgen)#g" homeserver.yaml
|
sed -i.bak "s#{{REGISTRATION_SHARED_SECRET}}#$(uuidgen)#g" homeserver.yaml
|
||||||
sed -i.bak "s#{{MACAROON_SECRET_KEY}}#$(uuidgen)#g" homeserver.yaml
|
sed -i.bak "s#{{MACAROON_SECRET_KEY}}#$(uuidgen)#g" homeserver.yaml
|
||||||
rm *.bak
|
rm *.bak
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
|
@ -3,8 +3,8 @@ set -e
|
||||||
|
|
||||||
BASE_DIR=$(cd $(dirname $0) && pwd)
|
BASE_DIR=$(cd $(dirname $0) && pwd)
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
cd installations/consent
|
cd installations/consent/env/bin/
|
||||||
source env/bin/activate
|
source activate
|
||||||
LOGFILE=$(mktemp)
|
LOGFILE=$(mktemp)
|
||||||
echo "Synapse log file at $LOGFILE"
|
echo "Synapse log file at $LOGFILE"
|
||||||
./synctl start 2> $LOGFILE
|
./synctl start 2> $LOGFILE
|
||||||
|
|
|
@ -3,6 +3,6 @@ set -e
|
||||||
|
|
||||||
BASE_DIR=$(cd $(dirname $0) && pwd)
|
BASE_DIR=$(cd $(dirname $0) && pwd)
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
cd installations/consent
|
cd installations/consent/env/bin/
|
||||||
source env/bin/activate
|
source activate
|
||||||
./synctl stop
|
./synctl stop
|
||||||
|
|
Loading…
Reference in New Issue