From 8a89fefac979604128ae0f75d94d0f3817b84e12 Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Sun, 4 Jul 2021 21:32:10 +0200 Subject: [PATCH] bw/matrix-dimension repair syntax errors --- bundles/matrix-dimension/items.py | 11 +++++------ bundles/matrix-dimension/metadata.py | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bundles/matrix-dimension/items.py b/bundles/matrix-dimension/items.py index 5fbb7d6..a8a9a5c 100644 --- a/bundles/matrix-dimension/items.py +++ b/bundles/matrix-dimension/items.py @@ -16,14 +16,14 @@ git_deploy = { 'action:matrix_dimension_build', }, 'needs': { - 'directory:{}'.format(node.metadatai.get('matrix-dimension/install_dir'), - 'directory:{}'.format(node.metadata.get('matrix-dimension/data_dir'), + 'directory:{}'.format(node.metadata.get('matrix-dimension/install_dir')), + 'directory:{}'.format(node.metadata.get('matrix-dimension/data_dir')), }, }, } files = { - '{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir'): { + '{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir')): { 'owner': 'matrix-dimension', 'group': 'matrix-dimension', 'content_type': 'mako', @@ -31,8 +31,7 @@ files = { 'config': node.metadata.get('matrix-dimension', {}), }, 'needs': { - 'action:element-web_yarn', - 'directory:{}'.format(node.metadata.get('matrix-dimension/install_dir'), + 'directory:{}'.format(node.metadata.get('matrix-dimension/install_dir')), }, 'triggers': { 'svc_systemd:matrix-dimension:restart', @@ -67,7 +66,7 @@ svc_systemd = { 'matrix-dimension': { 'needs': { 'action:matrix_dimension_build', - 'file:{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir'), + 'file:{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir')), 'postgres_db:matrix-dimension', 'postgres_role:matrix-dimension', }, diff --git a/bundles/matrix-dimension/metadata.py b/bundles/matrix-dimension/metadata.py index 524e291..2d41180 100644 --- a/bundles/matrix-dimension/metadata.py +++ b/bundles/matrix-dimension/metadata.py @@ -46,7 +46,7 @@ def nginx_config(metadata): 'max_body_size': '50M', 'locations': { '/': { - 'target': 'http://127.0.0.1:8184', + 'target': 'http://127.0.0.1:20030', }, }, },