Spaces:
Sleeping
Sleeping
Download start.sh from musy3000/restrict_Smart_Grad_UI: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/spaces/musy3000/restrict_Smart_Grad_UI/resolve/main/start.sh
- Command line
-
hf download hf://spaces/musy3000/restrict_Smart_Grad_UI/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/musy3000/restrict_Smart_Grad_UI/resolve/main/start.sh
409 Bytes
| set -e | |
| echo ">>> Cloning private GitHub repo..." | |
| git clone --depth 1 \ | |
| https://${GITHUB_PAT}@github.com/pgacirane/Smart_Grad_UI.git /build/app | |
| echo ">>> Building WAR with Maven..." | |
| cd /build/app && mvn clean package -DskipTests -q | |
| echo ">>> Deploying WAR to Tomcat..." | |
| cp /build/app/target/*.war /usr/local/tomcat/webapps/ROOT.war | |
| echo ">>> Starting Tomcat on port 7860..." | |
| catalina.sh run |