Skip to content

Commit 0bce7f3

Browse files
committed
Merge remote-tracking branch 'origin/develop' into dbkr/paginate_publicrooms
2 parents 3d97061 + 48fb578 commit 0bce7f3

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Then similarly with `matrix-react-sdk`:
151151
1. `git checkout develop`
152152
1. `npm install`
153153
1. `rm -r node_modules/matrix-js-sdk; ln -s ../../matrix-js-sdk node_modules/`
154-
1. `npm run start`
154+
1. `popd`
155155

156156
Finally, build and start vector itself:
157157

@@ -161,7 +161,7 @@ Finally, build and start vector itself:
161161
1. `npm install`
162162
1. `rm -r node_modules/matrix-js-sdk; ln -s ../../matrix-js-sdk node_modules/`
163163
1. `rm -r node_modules/matrix-react-sdk; ln -s ../../matrix-react-sdk node_modules/`
164-
1. `npm run start`
164+
1. `npm start`
165165
1. Wait a few seconds for the initial build to finish; you should see something like:
166166

167167
```

deploy/redeploy.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from flask import Flask, jsonify, request, abort
66
app = Flask(__name__)
77

8-
arg_jenkins_url, arg_extract_path, arg_should_clean, arg_symlink = (
9-
None, None, None, None
8+
arg_jenkins_url, arg_extract_path, arg_should_clean, arg_symlink, arg_config_location = (
9+
None, None, None, None, None
1010
)
1111

1212
def download_file(url):
@@ -122,6 +122,9 @@ def on_receive_jenkins_poke():
122122

123123
create_symlink(source=os.path.join(untar_location, "vector"), linkname=arg_symlink)
124124

125+
if arg_config_location:
126+
create_symlink(source=arg_config_location, linkname=os.path.join(untar_location, "vector", 'config.json'))
127+
125128
return jsonify({})
126129

127130
if __name__ == "__main__":
@@ -154,6 +157,12 @@ def on_receive_jenkins_poke():
154157
to the /vector directory INSIDE the tarball."
155158
)
156159
)
160+
parser.add_argument(
161+
"--config", dest="config", help=(
162+
"Write a symlink to config.json in the extracted tarball. \
163+
To this location."
164+
)
165+
)
157166
args = parser.parse_args()
158167
if args.jenkins.endswith("/"): # important for urljoin
159168
arg_jenkins_url = args.jenkins
@@ -162,9 +171,10 @@ def on_receive_jenkins_poke():
162171
arg_extract_path = args.extract
163172
arg_should_clean = args.clean
164173
arg_symlink = args.symlink
174+
arg_config_location = args.config
165175
print(
166-
"Listening on port %s. Extracting to %s%s. Symlinking to %s. Jenkins URL: %s" %
176+
"Listening on port %s. Extracting to %s%s. Symlinking to %s. Jenkins URL: %s. Config location: %s" %
167177
(args.port, arg_extract_path,
168-
" (clean after)" if arg_should_clean else "", arg_symlink, arg_jenkins_url)
178+
" (clean after)" if arg_should_clean else "", arg_symlink, arg_jenkins_url, arg_config_location)
169179
)
170180
app.run(host="0.0.0.0", port=args.port, debug=True)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@
9090
"webpack": "^1.12.14"
9191
},
9292
"optionalDependencies": {
93-
"olm": "https://matrix.org/packages/npm/olm/olm-1.2.0.tgz"
93+
"olm": "https://matrix.org/packages/npm/olm/olm-1.3.0.tgz"
9494
}
9595
}

0 commit comments

Comments
 (0)