You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.5 KiB
71 lines
1.5 KiB
name: kiddos |
|
region: nyc |
|
|
|
# Backend Service |
|
services: |
|
- name: backend |
|
source_dir: backend |
|
github: |
|
repo: YOUR_GITHUB_USERNAME/kiddos |
|
branch: main |
|
deploy_on_push: true |
|
|
|
build_command: npm install && npm run build |
|
run_command: npm run migrate && npm start |
|
|
|
environment_slug: node-js |
|
instance_size_slug: basic-xxs |
|
instance_count: 1 |
|
|
|
http_port: 3000 |
|
|
|
envs: |
|
- key: NODE_ENV |
|
value: production |
|
- key: PORT |
|
value: "3000" |
|
- key: TURSO_URL |
|
value: ${TURSO_URL} |
|
type: SECRET |
|
- key: TURSO_AUTH_TOKEN |
|
value: ${TURSO_AUTH_TOKEN} |
|
type: SECRET |
|
- key: YOUTUBE_API_KEY |
|
value: ${YOUTUBE_API_KEY} |
|
type: SECRET |
|
- key: JWT_SECRET |
|
value: ${JWT_SECRET} |
|
type: SECRET |
|
- key: JWT_REFRESH_SECRET |
|
value: ${JWT_REFRESH_SECRET} |
|
type: SECRET |
|
- key: INITIAL_ADMIN_USERNAME |
|
value: ${INITIAL_ADMIN_USERNAME} |
|
- key: INITIAL_ADMIN_PASSWORD |
|
value: ${INITIAL_ADMIN_PASSWORD} |
|
type: SECRET |
|
- key: CORS_ORIGIN |
|
value: ${APP_URL} |
|
|
|
health_check: |
|
http_path: /api/health |
|
|
|
# Frontend Static Site |
|
static_sites: |
|
- name: frontend |
|
source_dir: frontend |
|
github: |
|
repo: YOUR_GITHUB_USERNAME/kiddos |
|
branch: main |
|
deploy_on_push: true |
|
|
|
build_command: npm install && npm run build |
|
output_dir: dist |
|
|
|
envs: |
|
- key: VITE_API_URL |
|
value: ${backend.PUBLIC_URL} |
|
|
|
routes: |
|
- path: / |
|
|
|
|