Skip to content

Commit 4486246

Browse files
committed
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.
1 parent 49b0fb0 commit 4486246

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dashboard/app/dashboard/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This dir exists for the purposes of running the dashboard app locally using dev_appserver.py.
2+
The production app sets CWD to the root of the syzkaller repository, so paths that refer to
3+
static resources in app.yaml look like dashboard/app/static/*. However, dev_appserver.py
4+
sets CWD to dashboard/app, so these paths do not work. This dir contains soft link
5+
dashboard/app/dashboard/app/static that point to dashboard/app/static, so that
6+
dashboard/app/static/* paths work from both locations.

dashboard/app/dashboard/app/static

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../static

0 commit comments

Comments
 (0)