-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
55 lines (54 loc) · 1.7 KB
/
Copy pathrender.yaml
File metadata and controls
55 lines (54 loc) · 1.7 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
databases:
- name: promptenhancer-db
databaseName: prompt_enhancer
user: admin
plan: free
region: oregon
services:
- type: web
name: promptenhancer-backend
env: python
plan: free
region: oregon
rootDir: backend
buildCommand: "pip install -r requirements.txt && python manage.py collectstatic --noinput"
startCommand: "python manage.py migrate && python manage.py create_admin && gunicorn prompt_enhancer_backend.wsgi:application --bind 0.0.0.0:$PORT --workers 2 --threads 2 --timeout 120"
healthCheckPath: /api/health/
autoDeploy: true
envVars:
- key: DEBUG
value: "False"
- key: SECRET_KEY
generateValue: true
- key: ALLOWED_HOSTS
value: ".onrender.com,promptenhancer.onrender.com"
- key: DATABASE_URL
fromDatabase:
name: promptenhancer-db
property: connectionString
- key: CORS_ALLOW_ALL_ORIGINS
value: "True"
- key: CORS_ALLOWED_ORIGINS
value: "https://promptenhancer-frontend.vercel.app"
- key: BACKEND_URL
value: "https://promptenhancer-backend.onrender.com"
- key: PYTHON_VERSION
value: "3.12.0"
- key: GEMINI_API_KEY
sync: false
- key: ADMIN_EMAIL
value: "dezprox25@gmail.com"
- key: EMAIL_BACKEND
value: "django.core.mail.backends.smtp.EmailBackend"
- key: EMAIL_HOST
value: "smtp.gmail.com"
- key: EMAIL_PORT
value: "587"
- key: EMAIL_USE_TLS
value: "True"
- key: EMAIL_HOST_USER
sync: false
- key: EMAIL_HOST_PASSWORD
sync: false
- key: DEFAULT_FROM_EMAIL
value: "PromptEnhancer Pro <noreply@promptenhancer.pro>"