Skip to content

Commit

Permalink
Fix UI build
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
  • Loading branch information
roidelapluie committed Jun 9, 2022
1 parent 4cb32a0 commit d7b1109
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/ui/build_ui.sh
Expand Up @@ -15,6 +15,10 @@

set -e
current=$(pwd)
if [[ -z $HOME ]] || [[ "$HOME" == "/" ]]
then
export HOME=$(mktemp -d)
fi

buildOrder=(module/lezer-promql module/codemirror-promql)

Expand All @@ -30,7 +34,7 @@ function buildModule() {
function buildReactApp() {
cd react-app
echo "build react-app"
npm run build
npm run build --verbose
cd "${current}"
rm -rf ./static/react
mv ./react-app/build ./static/react
Expand Down

0 comments on commit d7b1109

Please sign in to comment.