-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
66 lines (63 loc) · 2.13 KB
/
Copy pathrender.yaml
File metadata and controls
66 lines (63 loc) · 2.13 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
56
57
58
59
60
61
62
63
64
65
66
# Render deployment configuration for Full-Stack Portfolio
# Custom Domain: https://rosecitydev.tech
# Frontend service: https://portfolio-frontend-zhcd.onrender.com (with custom domain)
# Backend service: https://portfolio-backend-skva.onrender.com
services:
# Frontend - React application
- type: web
name: portfolio-frontend
runtime: node
repo: https://github.com/Hawk-PDX/project-dev-resume
plan: free
buildCommand: |
echo "Setting environment variables for build..."
export VITE_API_BASE_URL="https://portfolio-backend-skva.onrender.com/api"
export NODE_ENV="production"
npm install
npm run build
staticPublishPath: ./dist
envVars:
- key: VITE_API_BASE_URL
value: https://portfolio-backend-skva.onrender.com/api
- key: NODE_ENV
value: production
headers:
- path: /*
name: X-Frame-Options
value: DENY
- path: /*
name: X-Content-Type-Options
value: nosniff
- path: /assets/*
name: Cache-Control
value: public, max-age=31536000, immutable
routes:
- type: rewrite
source: /*
destination: /index.html
domains:
- rosecitydev.tech
- www.rosecitydev.tech
# Backend - Flask API
- type: web
name: portfolio-backend
runtime: python
repo: https://github.com/Hawk-PDX/project-dev-resume
plan: free
buildCommand: cd backend && pip install -r requirements.txt && python3 run_migrations.py
startCommand: cd backend && python3 -c "from run import app, socketio; import os; socketio.run(app, host='0.0.0.0', port=int(os.environ.get('PORT', 10000)), debug=False)"
envVars:
- key: FLASK_ENV
value: production
- key: DATABASE_URL
value: postgresql://portfolio_k1um_user:SHurWbypQLOZ3U4nmrpjDdA60Df4BCqK@dpg-d32adejipnbc73d1p8k0-a/portfolio_k1um
- key: SECRET_KEY
generateValue: true
- key: GITHUB_TOKEN
sync: false # Set this in Render dashboard - Your GitHub personal access token
# Database - PostgreSQL
- type: pserv
name: portfolio-database
plan: free
env: postgresql
region: oregon