diff --git a/bundles/pretalx/items.py b/bundles/pretalx/items.py index 8a57eae..75e4c09 100644 --- a/bundles/pretalx/items.py +++ b/bundles/pretalx/items.py @@ -1,5 +1,5 @@ assert node.has_bundle('redis'), f'{node.name}: pretalx needs redis' -assert node.has_bundle('nodejs'), f'{node.name}: pretalx needs nodejs for rebuild and regenerate_css step' +assert node.has_bundle('nodejs'), f'{node.name}: pretalx needs nodejs for rebuild step' actions = { 'pretalx_create_virtualenv': { @@ -53,17 +53,6 @@ actions = { }, 'triggered': True, }, - 'pretalx_regenerate-css': { - 'command': 'sudo -u pretalx PRETALX_CONFIG_FILE=/opt/pretalx/pretalx.cfg /opt/pretalx/venv/bin/python -m pretalx regenerate_css', - 'needs': { - 'action:pretalx_migrate', - 'directory:/opt/pretalx/data', - 'directory:/opt/pretalx/static', - 'file:/opt/pretalx/pretalx.cfg', - 'bundle:nodejs', - }, - 'triggered': True, - }, } users = { @@ -90,7 +79,6 @@ git_deploy = { 'action:pretalx_install', 'action:pretalx_migrate', 'action:pretalx_rebuild', - 'action:pretalx_regenerate-css', 'svc_systemd:pretalx-web:restart', 'svc_systemd:pretalx-worker:restart', }, @@ -121,7 +109,6 @@ svc_systemd = { 'action:pretalx_install', 'action:pretalx_migrate', 'action:pretalx_rebuild', - 'action:pretalx_regenerate-css', 'file:/etc/systemd/system/pretalx-web.service', 'file:/opt/pretalx/pretalx.cfg', }, @@ -129,7 +116,8 @@ svc_systemd = { 'pretalx-worker': { 'needs': { 'action:pretalx_install', - 'action:pretalx_migrate', + 'action:pretalx_migrate',, + 'action:pretalx_rebuild', 'file:/etc/systemd/system/pretalx-worker.service', 'file:/opt/pretalx/pretalx.cfg', }, @@ -204,7 +192,6 @@ for plugin_name, plugin_config in node.metadata.get('pretalx/plugins', {}).items 'triggers': { 'action:pretalx_migrate', 'action:pretalx_rebuild', - 'action:pretalx_regenerate-css', 'svc_systemd:pretalx-web:restart', 'svc_systemd:pretalx-worker:restart', },