feat(datastore): support --since in stop command, trigger website update from render_views, update docs

This commit is contained in:
Moritz Graf
2026-10-11 15:07:35 +02:00
parent 967909c3a7
commit 3abfa18182
3 changed files with 55 additions and 5 deletions
+14
View File
@@ -579,6 +579,20 @@ def main():
if not args.no_html:
render_html_dashboards(engine, html_dir)
# Automatically trigger update_website.py for live publishing to hosting
try:
update_script = Path(__file__).resolve().parent / "update_website.py"
if update_script.exists():
import subprocess, shutil
uv_bin = shutil.which("uv") or "/home/node/.openclaw/bin/uv"
if Path(uv_bin).is_file():
cmd = [str(uv_bin), "run", str(update_script)]
else:
cmd = [sys.executable, str(update_script)]
subprocess.run(cmd, check=False)
except Exception as e:
print(f"Warning: could not trigger update_website.py from render_views: {e}")
if __name__ == "__main__":
main()