Inital commit
This commit is contained in:
38
splitchat/render.yaml
Normal file
38
splitchat/render.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
# Web service (Django + Daphne ASGI)
|
||||
- type: web
|
||||
name: splitchat
|
||||
runtime: python
|
||||
buildCommand: "./build.sh"
|
||||
startCommand: "daphne -b 0.0.0.0 -p $PORT config.asgi:application"
|
||||
envVars:
|
||||
- key: SECRET_KEY
|
||||
generateValue: true
|
||||
- key: DEBUG
|
||||
value: "False"
|
||||
- key: ALLOWED_HOSTS
|
||||
value: ".onrender.com"
|
||||
- key: DATABASE_URL
|
||||
fromDatabase:
|
||||
name: splitchat-db
|
||||
property: connectionString
|
||||
- key: REDIS_URL
|
||||
fromService:
|
||||
name: splitchat-redis
|
||||
type: redis
|
||||
property: connectionString
|
||||
- key: PYTHON_VERSION
|
||||
value: "3.11.0"
|
||||
|
||||
# Redis for Django Channels
|
||||
- type: redis
|
||||
name: splitchat-redis
|
||||
plan: free
|
||||
maxmemoryPolicy: noeviction
|
||||
|
||||
databases:
|
||||
# PostgreSQL
|
||||
- name: splitchat-db
|
||||
plan: free
|
||||
databaseName: splitchat
|
||||
user: splitchat
|
||||
Reference in New Issue
Block a user