B1acB1rd commited on
Commit ·
03f22d7
1
Parent(s): 4d92cd5
Add PostgreSQL support for Render deployment
Browse files- render.yaml +18 -3
- requirements.txt +20 -5
render.yaml
CHANGED
|
@@ -1,13 +1,29 @@
|
|
| 1 |
-
# render.yaml - Render Blueprint for
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
services:
|
| 3 |
- type: web
|
| 4 |
name: pioe
|
| 5 |
runtime: python
|
|
|
|
| 6 |
buildCommand: pip install -r requirements.txt
|
| 7 |
startCommand: uvicorn backend.main:app --host 0.0.0.0 --port $PORT
|
| 8 |
envVars:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- key: GEMINI_API_KEY
|
| 10 |
sync: false
|
|
|
|
| 11 |
- key: ADZUNA_APP_ID
|
| 12 |
sync: false
|
| 13 |
- key: ADZUNA_API_KEY
|
|
@@ -18,8 +34,7 @@ services:
|
|
| 18 |
sync: false
|
| 19 |
- key: GITHUB_TOKEN
|
| 20 |
sync: false
|
| 21 |
-
|
| 22 |
-
value: sqlite:///./pioe.db
|
| 23 |
- key: MIN_RELEVANCE_SCORE
|
| 24 |
value: "0.3"
|
| 25 |
healthCheckPath: /api/stats
|
|
|
|
| 1 |
+
# render.yaml - Render Blueprint for PIOE
|
| 2 |
+
# This creates a web service AND a PostgreSQL database
|
| 3 |
+
|
| 4 |
+
databases:
|
| 5 |
+
- name: pioe-db
|
| 6 |
+
plan: free
|
| 7 |
+
databaseName: pioe
|
| 8 |
+
user: pioe
|
| 9 |
+
|
| 10 |
services:
|
| 11 |
- type: web
|
| 12 |
name: pioe
|
| 13 |
runtime: python
|
| 14 |
+
plan: free
|
| 15 |
buildCommand: pip install -r requirements.txt
|
| 16 |
startCommand: uvicorn backend.main:app --host 0.0.0.0 --port $PORT
|
| 17 |
envVars:
|
| 18 |
+
# Database (auto-linked from the database above)
|
| 19 |
+
- key: DATABASE_URL
|
| 20 |
+
fromDatabase:
|
| 21 |
+
name: pioe-db
|
| 22 |
+
property: connectionString
|
| 23 |
+
# AI API (required - add manually in dashboard)
|
| 24 |
- key: GEMINI_API_KEY
|
| 25 |
sync: false
|
| 26 |
+
# Job Board APIs (optional)
|
| 27 |
- key: ADZUNA_APP_ID
|
| 28 |
sync: false
|
| 29 |
- key: ADZUNA_API_KEY
|
|
|
|
| 34 |
sync: false
|
| 35 |
- key: GITHUB_TOKEN
|
| 36 |
sync: false
|
| 37 |
+
# Scoring
|
|
|
|
| 38 |
- key: MIN_RELEVANCE_SCORE
|
| 39 |
value: "0.3"
|
| 40 |
healthCheckPath: /api/stats
|
requirements.txt
CHANGED
|
@@ -1,18 +1,33 @@
|
|
| 1 |
-
# PIOE - Personal Intelligence & Opportunity Engine
|
|
|
|
|
|
|
| 2 |
fastapi
|
| 3 |
uvicorn[standard]
|
|
|
|
|
|
|
| 4 |
sqlalchemy
|
|
|
|
|
|
|
|
|
|
| 5 |
httpx
|
| 6 |
feedparser
|
| 7 |
beautifulsoup4
|
| 8 |
lxml
|
|
|
|
|
|
|
|
|
|
| 9 |
apscheduler
|
|
|
|
|
|
|
| 10 |
sentence-transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
python-dotenv
|
| 12 |
pydantic
|
| 13 |
pydantic-settings
|
| 14 |
-
google-generativeai
|
| 15 |
-
praw
|
| 16 |
-
aiofiles
|
| 17 |
PyYAML
|
| 18 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
# PIOE 2.0 - Personal Intelligence & Opportunity Engine
|
| 2 |
+
|
| 3 |
+
# Web Framework
|
| 4 |
fastapi
|
| 5 |
uvicorn[standard]
|
| 6 |
+
|
| 7 |
+
# Database (SQLite local, PostgreSQL for production)
|
| 8 |
sqlalchemy
|
| 9 |
+
psycopg2-binary
|
| 10 |
+
|
| 11 |
+
# HTTP & Parsing
|
| 12 |
httpx
|
| 13 |
feedparser
|
| 14 |
beautifulsoup4
|
| 15 |
lxml
|
| 16 |
+
aiofiles
|
| 17 |
+
|
| 18 |
+
# Scheduling
|
| 19 |
apscheduler
|
| 20 |
+
|
| 21 |
+
# AI & ML
|
| 22 |
sentence-transformers
|
| 23 |
+
google-generativeai
|
| 24 |
+
numpy
|
| 25 |
+
|
| 26 |
+
# Configuration
|
| 27 |
python-dotenv
|
| 28 |
pydantic
|
| 29 |
pydantic-settings
|
|
|
|
|
|
|
|
|
|
| 30 |
PyYAML
|
| 31 |
+
|
| 32 |
+
# Social APIs
|
| 33 |
+
praw
|