From 4706bbc67d981ad3c476dd01fc7c945b510c5700 Mon Sep 17 00:00:00 2001 From: Zaine Date: Thu, 4 Jun 2026 14:12:34 +0100 Subject: [PATCH] updates --- README.md | 2 +- src/authoring_service/config.py | 2 +- systemd/user/org-web-authoring.service | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 706c1a8..f49559b 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Standalone local authoring UI for the Org website content in: -`/home/zaine/master-folder/org_files/org_web` +`/home/zaine/master-folder/org-platform/org_web` Run: diff --git a/src/authoring_service/config.py b/src/authoring_service/config.py index d9bd163..a6c20e6 100755 --- a/src/authoring_service/config.py +++ b/src/authoring_service/config.py @@ -6,7 +6,7 @@ import os from pathlib import Path APP_ROOT = Path(__file__).resolve().parents[2] -DEFAULT_CONTENT_ROOT = Path("/home/zaine/master-folder/org_files/org_web") +DEFAULT_CONTENT_ROOT = Path("/home/zaine/master-folder/org-platform/org_web") def looks_like_content_root(path: Path) -> bool: diff --git a/systemd/user/org-web-authoring.service b/systemd/user/org-web-authoring.service index dd946db..dd1aa54 100755 --- a/systemd/user/org-web-authoring.service +++ b/systemd/user/org-web-authoring.service @@ -4,13 +4,13 @@ After=network.target [Service] Type=simple -WorkingDirectory=/home/zaine/master-folder/projects/authoring-service -Environment=AUTHOR_CONTENT_ROOT=/home/zaine/master-folder/org_files/org_web -Environment=AUTHOR_HIDDEN_BACKUP_DIR=/home/zaine/master-folder/projects/authoring-service/backups/hidden-details +WorkingDirectory=/home/zaine/master-folder/org-platform/authoring-service +Environment=AUTHOR_CONTENT_ROOT=/home/zaine/master-folder/org-platform/org_web +Environment=AUTHOR_HIDDEN_BACKUP_DIR=/home/zaine/master-folder/org-platform/authoring-service/backups/hidden-details Environment=AUTHOR_PORT=8765 Environment=PYTHONUNBUFFERED=1 -ExecStartPre=/home/zaine/master-folder/projects/authoring-service/.venv/bin/python -c "import authoring_server as s; pages=s.list_pages(); print(f'Authoring root: {s.ROOT}'); print(f'Editable pages: {len(pages)}'); raise SystemExit(0 if pages else 1)" -ExecStart=/home/zaine/master-folder/projects/authoring-service/.venv/bin/python -u /home/zaine/master-folder/projects/authoring-service/authoring_server.py +ExecStartPre=/home/zaine/master-folder/org-platform/authoring-service/.venv/bin/python -c "import authoring_server as s; pages=s.list_pages(); print(f'Authoring root: {s.ROOT}'); print(f'Editable pages: {len(pages)}'); raise SystemExit(0 if pages else 1)" +ExecStart=/home/zaine/master-folder/org-platform/authoring-service/.venv/bin/python -u /home/zaine/master-folder/org-platform/authoring-service/authoring_server.py Restart=on-failure RestartSec=5