mirror of
https://github.com/prometheus/prometheus
synced 2024-12-23 15:04:13 +00:00
7291563d4d
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
19 lines
318 B
Bash
Executable File
19 lines
318 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build React web UI.
|
|
# Run from repository root.
|
|
set -e
|
|
set -u
|
|
|
|
if ! [[ "$0" =~ "scripts/build_react_app.sh" ]]; then
|
|
echo "must be run from repository root"
|
|
exit 255
|
|
fi
|
|
|
|
cd web/ui/react-app
|
|
|
|
echo "building React app"
|
|
PUBLIC_URL=. npm run build
|
|
rm -rf ../static/react
|
|
mv build ../static/react
|