File size: 919 Bytes
dfdddb1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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