gradio/scripts/launch_website.sh
Artin Mohammadi bdced314bc
Scripts become much easier to read and understand (#1918)
* Being nice to the user

* Front-end builder, CircleCI runner, and Gradio installer updated

* The testing scripts updated

* Front-end runner and the website launcher updated

* The formatters updated

* GitHub Actions and PyPI uploader scripts updated

* Updating the URLs

* Removing commented codes

* Delete a blank line
2022-08-01 15:17:03 -07:00

15 lines
193 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
source scripts/helpers.sh
npm_required
echo "Building the website..."
set -e
cd website/homepage
npm install
npm run build
cd build
python -m http.server