gradio/scripts/launch_website.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
300 B
Bash
Raw Normal View History

#!/bin/bash
cd "$(dirname ${0})/.."
source scripts/helpers.sh
npm_required
echo "Building the website..."
set -e
cd website/homepage
2022-11-19 03:24:13 +08:00
LATEST_COMMIT=$(git log -1 --format="%H")
npm install
2022-11-19 03:24:13 +08:00
npm run build --url=https://gradio-main-build.s3.amazonaws.com/$LATEST_COMMIT/
cd build
python -m http.server