Skip to content

Commit

Permalink
fix: Use buildDate to access web static build version (#1950)
Browse files Browse the repository at this point in the history
Backported-from: main
Backported-to: 23.09
  • Loading branch information
rapsealk authored and kyujin-cho committed Mar 5, 2024
1 parent cd544e8 commit 5bd2602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/1950.fix.md
@@ -0,0 +1 @@
Use `buildDate` instead of `build` to retrieve web static version to follow lablup/backend.ai-webui#2072
2 changes: 1 addition & 1 deletion scripts/install-dev.sh
Expand Up @@ -937,7 +937,7 @@ configure_backendai() {
install_editable_webui
sed_inplace "s@\(#\)\{0,1\}static_path = .*@static_path = "'"src/ai/backend/webui/build/rollup"'"@" ./webserver.conf
else
webui_version=$(jq -r '.package + " (built at " + .build + ", rev " + .revision + ")"' src/ai/backend/web/static/version.json)
webui_version=$(jq -r '.package + " (built at " + .buildDate + ", rev " + .revision + ")"' src/ai/backend/web/static/version.json)
show_note "The currently embedded webui version: $webui_version"
fi

Expand Down

0 comments on commit 5bd2602

Please sign in to comment.