File size: 991 Bytes
667bab7
 
 
 
 
 
 
 
 
 
7bc29e6
667bab7
 
 
7bc29e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
39
40
41
# Render Deployment Configuration
# Create this file in your project root for Render auto-detection

---
# render.yaml
services:
  - type: web
    name: lao-python-learn
    env: python
    buildCommand: pip install -r requirements.txt
    startCommand: python app.py --port $PORT
    envVars:
      - key: PYTHON_VERSION
        value: 3.12.0
      - key: DB_HOST
        fromDatabase:
          name: lao-python-learn-db
          property: host
      - key: DB_PORT
        fromDatabase:
          name: lao-python-learn-db
          property: port
      - key: DB_NAME
        fromDatabase:
          name: lao-python-learn-db
          property: databaseName
      - key: DB_USER
        fromDatabase:
          name: lao-python-learn-db
          property: user
      - key: DB_PASSWORD
        fromDatabase:
          name: lao-python-learn-db
          property: password

databases:
  - name: lao-python-learn-db
    databaseName: lao_python_learn
    user: lao_user
    plan: free