-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
24 lines (24 loc) · 875 Bytes
/
Copy pathrender.yaml
File metadata and controls
24 lines (24 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# NOTE: The free Render plan uses an ephemeral filesystem — the SQLite
# database is wiped on every restart/redeploy. `npm run seed` re-creates the
# sample questions on each boot so the demo always works, but user-created
# questions and quiz history will NOT persist across restarts.
# For durable data, attach a Render persistent disk (paid) and point
# DB_PATH at its mount path, or migrate to a managed database.
services:
- type: web
name: mcq-quiz-api
runtime: node
plan: free
buildCommand: npm install
startCommand: npm run seed && npm start
envVars:
- key: NODE_ENV
value: production
- key: DB_PATH
value: ./data/quiz.db
# To persist data on a paid plan, uncomment the disk below and set
# DB_PATH to /var/data/quiz.db
# disk:
# name: quiz-data
# mountPath: /var/data
# sizeGB: 1