Files
suanming/.koyeb/koyeb.yaml
patdelphi e6d814ff74 Fix Koyeb deployment configuration
- Update build command to use pnpm instead of npm
- Fix frontend build process in Koyeb config
- Update API URL configuration for production
- Fix database initialization in Dockerfile
- Ensure proper static file serving for SPA
2025-08-19 18:55:08 +08:00

31 lines
700 B
YAML

# Koyeb部署配置文件
name: suanming-app
services:
- name: suanming-backend
type: web
git:
branch: master
build_command: npm install -g pnpm@9.0.0 && pnpm install --frozen-lockfile && pnpm run build
run_command: pnpm start
instance_type: nano
ports:
- port: 8000
protocol: http
env:
- key: NODE_ENV
value: production
- key: PORT
value: "8000"
volumes:
- name: sqlite-data
mount_path: /app/data
size: 1GB
health_check:
http:
path: /api/health
port: 8000
initial_delay_seconds: 30
period_seconds: 10
timeout_seconds: 5
failure_threshold: 3