From 5dc09de14fb47240806b1269b9704a64c2fd17f9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 22 Dec 2025 11:00:27 +0100 Subject: dashboard/app: make static resources work for dev_appserver.py The production app sets CWD to the root of the syzkaller repository, so paths that refer to static resources in app.yaml look like dashboard/app/static/*. However, dev_appserver.py sets CWD to dashboard/app, so these paths do not work. Add soft link dashboard/app/dashboard/app/static that point to dashboard/app/static, so that dashboard/app/static/* paths work from both locations. --- dashboard/app/dashboard/README.md | 6 ++++++ dashboard/app/dashboard/app/static | 1 + 2 files changed, 7 insertions(+) create mode 100644 dashboard/app/dashboard/README.md create mode 120000 dashboard/app/dashboard/app/static (limited to 'dashboard') diff --git a/dashboard/app/dashboard/README.md b/dashboard/app/dashboard/README.md new file mode 100644 index 000000000..96fe73727 --- /dev/null +++ b/dashboard/app/dashboard/README.md @@ -0,0 +1,6 @@ +This dir exists for the purposes of running the dashboard app locally using dev_appserver.py. +The production app sets CWD to the root of the syzkaller repository, so paths that refer to +static resources in app.yaml look like dashboard/app/static/*. However, dev_appserver.py +sets CWD to dashboard/app, so these paths do not work. This dir contains soft link +dashboard/app/dashboard/app/static that point to dashboard/app/static, so that +dashboard/app/static/* paths work from both locations. diff --git a/dashboard/app/dashboard/app/static b/dashboard/app/dashboard/app/static new file mode 120000 index 000000000..8e9b74c47 --- /dev/null +++ b/dashboard/app/dashboard/app/static @@ -0,0 +1 @@ +../../static \ No newline at end of file -- cgit mrf-deployment