2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-04-24 13:01:18 +08:00

add url arg to build ()

This commit is contained in:
Ali Abdalla 2022-11-18 11:24:13 -08:00 committed by GitHub
parent 6798ea38d7
commit b9df6f3804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,8 @@ npm_required
echo "Building the website..."
set -e
cd website/homepage
LATEST_COMMIT=$(git log -1 --format="%H")
npm install
npm run build
npm run build --url=https://gradio-main-build.s3.amazonaws.com/$LATEST_COMMIT/
cd build
python -m http.server