Spaces:
Runtime error
Runtime error
Download start.sh from Yuruyuruu/task-tracking-system: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/task-tracking-system/resolve/main/start.sh
- Command line
-
hf download hf://spaces/Yuruyuruu/task-tracking-system/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/Yuruyuruu/task-tracking-system/resolve/main/start.sh
560 Bytes
| set -euo pipefail | |
| : "${WebApi__BaseUrl:=http://127.0.0.1:5001/api/}" | |
| export WebApi__BaseUrl | |
| dotnet /app/api/TaskTrackingSystem.WebApi.dll --contentRoot /app/api --urls http://127.0.0.1:5001 & | |
| api_pid=$! | |
| dotnet /app/webapp/TaskTrackingSystem.WebApp.dll --contentRoot /app/webapp --urls http://127.0.0.1:5000 & | |
| webapp_pid=$! | |
| term_handler() { | |
| kill "$api_pid" "$webapp_pid" 2>/dev/null || true | |
| exit 0 | |
| } | |
| trap term_handler SIGTERM SIGINT | |
| nginx -g 'daemon off;' & | |
| nginx_pid=$! | |
| wait -n "$api_pid" "$webapp_pid" "$nginx_pid" | |
| term_handler | |