nodes/htz.ex42-1048908: update element-web config
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-20 11:10:08 +01:00
parent 1ac6559b9f
commit 014b6029c5
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 13 additions and 10 deletions

View file

@ -1,6 +1,6 @@
assert node.has_bundle('nodejs')
from json import dumps
from bundlewrap.metadata import metadata_to_json
element_web_root = '/var/www/{}'.format(node.metadata['element-web']['url'])
@ -20,7 +20,7 @@ git_deploy = {
files = {
element_web_root + '/webapp/config.json': {
'content': dumps(node.metadata['element-web']['config']),
'content': metadata_to_json(node.metadata['element-web']['config']),
'needs': {
'action:element-web_yarn',
},