Spaces:
Sleeping
Sleeping
| services: | |
| - type: web | |
| name: scrap-dji-api | |
| env: python | |
| plan: free | |
| buildCommand: pip install -r requirements.txt | |
| startCommand: uvicorn api.main:app --host 0.0.0.0 --port $PORT | |
| envVars: | |
| - key: TYPESENSE_HOST | |
| value: your-typesense-host | |
| - key: TYPESENSE_PORT | |
| value: 8108 | |
| - key: TYPESENSE_API_KEY | |
| value: xyz | |
| - key: STORAGE_PATH | |
| value: /tmp/storage_data | |
| - type: worker | |
| name: scrap-dji-worker | |
| env: python | |
| plan: free | |
| buildCommand: pip install -r requirements.txt | |
| startCommand: python workers/scraper_worker.py | |
| envVars: | |
| - key: TYPESENSE_HOST | |
| value: your-typesense-host | |
| - key: TYPESENSE_PORT | |
| value: 8108 | |
| - key: TYPESENSE_API_KEY | |
| value: xyz | |
| - key: SCRAPER_INTERVAL | |
| value: 300 | |
| staticSites: | |
| - name: scrap-dji-frontend | |
| buildCommand: '' | |
| publishPath: frontend | |