Spaces:
Running
Running
Download fly.toml from VinciTutorial/cadence: direct link, hf CLI and curl.
- Browser
- Download file 845 Bytes
-
https://huggingface.co/spaces/VinciTutorial/cadence/resolve/main/fly.toml
- Command line
-
hf download hf://spaces/VinciTutorial/cadence/fly.toml
-
curl -L -o fly.toml https://huggingface.co/spaces/VinciTutorial/cadence/resolve/main/fly.toml
845 Bytes
| # Fly.io — deploy with: fly launch --copy-config --name <your-app> --region zrh | |
| # then attach storage: fly volumes create cadence_cache --size 5 --region zrh | |
| app = "cadence" | |
| primary_region = "zrh" # Zurich; other options: fra, ams, lhr | |
| [build] | |
| dockerfile = "Dockerfile" | |
| [env] | |
| PORT = "8080" | |
| CADENCE_CACHE = "/data" | |
| CADENCE_MAX_CACHE_BYTES = "3221225472" | |
| [http_service] | |
| internal_port = 8080 | |
| force_https = true | |
| auto_stop_machines = "stop" # scale to zero when idle; first request wakes it | |
| auto_start_machines = true | |
| min_machines_running = 0 | |
| processes = ["app"] | |
| [[http_service.checks]] | |
| interval = "30s" | |
| timeout = "5s" | |
| grace_period = "20s" | |
| method = "GET" | |
| path = "/healthz" | |
| [[mounts]] | |
| source = "cadence_cache" | |
| destination = "/data" | |
| [[vm]] | |
| size = "shared-cpu-1x" | |
| memory = "512mb" | |