fix/deployment-and-database-integration #2

Merged
let5see merged 2 commits from fix/deployment-and-database-integration into main 2026-02-03 13:45:10 +08:00

2 Commits

Author SHA1 Message Date
84838928e3 feat: update program configuration with actual program names
## Changes

### Program Configuration
- Update programs.json with actual program names:
  - 节目一:青苹果乐园
  - 节目二:五百年桑田沧海
  - 节目三:我的中国心
  - 节目四:萍聚
  - 节目五:追光而行,共赴新程
  - 节目六:粉红色的回忆
  - 节目七:敬业狂想曲

### Dockerfile Update
- Add config directory copy to Dockerfile
- Ensure program configuration is included in production build

## Testing
- Configuration loaded successfully (7 programs, 7 awards)
- Server restarted and verified config loading

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-02 21:52:03 +08:00
296f6e09f8 fix: add MySQL database and fix deployment issues
## Changes

### Database Integration
- Add MySQL 8.0 service to docker-compose.yml
- Configure DATABASE_URL environment variable for server
- Add health check for MySQL service
- Create mysql_data volume for data persistence

### Dockerfile Improvements
- Generate Prisma Client in builder stage
- Copy Prisma Client from correct pnpm workspace location
- Ensure Prisma Client is available in production container

### Client-Mobile Fixes
- Remove deprecated StampDock.vue component
- Fix voting store API usage in VotingPage.vue
- Add type assertion for userTickets in connection.ts
- Add remark property to AwardConfig interface in voting.ts

## Testing
- All containers start successfully
- Database connection established
- Redis connection working
- 94 participants restored from Redis
- Vote data synced (20 votes)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-02 21:46:51 +08:00