Skip to content

Commit

Permalink
FIX: Use UI_PORT variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Oct 4, 2023
1 parent ca53495 commit 21dfbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# replace localhost:8080 with {{.Host}}:UI_PORT in /foxglove/default-layout.json file
sed -i 's|localhost:8080|{{.Host}}:{{env "UI_PORT"}}|g' /foxglove/default-layout.json
sed -i "s|localhost:8080|{{.Host}}:${UI_PORT}|g" /foxglove/default-layout.json

# Optionally override the default layout with one provided via bind mount
index_html=$(cat index.html)
Expand Down

0 comments on commit 21dfbbf

Please sign in to comment.