mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
16 lines
300 B
Bash
16 lines
300 B
Bash
#!/bin/bash
|
|
|
|
cd "$(dirname ${0})/.."
|
|
source scripts/helpers.sh
|
|
|
|
npm_required
|
|
|
|
echo "Building the website..."
|
|
set -e
|
|
cd website/homepage
|
|
LATEST_COMMIT=$(git log -1 --format="%H")
|
|
npm install
|
|
npm run build --url=https://gradio-main-build.s3.amazonaws.com/$LATEST_COMMIT/
|
|
cd build
|
|
python -m http.server
|