Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn -w 4 -b 0.0.0.0:$PORT run:app
16 changes: 16 additions & 0 deletions frontend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"rewrites": [
{
"source": "/api/(.*)",
"destination": "https://aipcss-backend.onrender.com/api/$1"
},
{
"source": "/socket.io/(.*)",
"destination": "https://aipcss-backend.onrender.com/socket.io/$1"
},
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}
24 changes: 24 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
- type: web
name: aipcss-backend
env: python
rootDir: backend
buildCommand: pip install -r requirements.txt
startCommand: gunicorn -w 4 -b 0.0.0.0:$PORT run:app
envVars:
- key: FLASK_ENV
value: production
- key: SECRET_KEY
generateValue: true
- key: JWT_SECRET_KEY
generateValue: true
- key: DATABASE_URL
fromDatabase:
name: aipcss-db
property: connectionString
- key: CORS_ORIGINS
value: "*"

- type: psql
name: aipcss-db
plan: free
Loading