aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-12-22 11:00:27 +0100
committerDmitry Vyukov <dvyukov@google.com>2025-12-23 15:23:58 +0000
commit5dc09de14fb47240806b1269b9704a64c2fd17f9 (patch)
treef4cbe11592699a708251caf1e084c83da3c6760c /dashboard
parent607f15495f8961ad270904c55ffe077623cdca62 (diff)
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.
Diffstat (limited to 'dashboard')
-rw-r--r--dashboard/app/dashboard/README.md6
l---------dashboard/app/dashboard/app/static1
2 files changed, 7 insertions, 0 deletions
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