Commit Graph

4 Commits

Author SHA1 Message Date
chiguyong fc53fa2e58 ci: add CI/CD deployment scripts with PM2, Nginx, and auto-setup
Deploy EternalAI / deploy (push) Has been cancelled Details
- Add ecosystem.config.js for PM2 process management
- Add deploy/setup-server.sh for one-shot server initialization (auto-detects OS, installs Node.js 20/PostgreSQL 15/PM2/Nginx)
- Add deploy/deploy.sh for repeatable deployments (pull -> install -> migrate -> reload -> health check)
- Add deploy/nginx.conf reverse proxy template with security headers
- Rewrite .gitea/workflows/deploy.yml with full CI/CD pipeline (checkout -> build -> migrate -> deploy -> health check)
- Add .env.example template with DATABASE_URL/JWT_SECRET/PORT/ALLOWED_ORIGINS
- Add docs/deployment.md (full deployment guide) and docs/business-processes.md
- Update package.json scripts (db:generate, test:e2e, deploy)
- Add logs/ to .gitignore
2026-06-20 23:50:53 +08:00
chiguyong dad034a833 test: add 35 E2E tests (auth/roles/creator/navigation) and fix temperature validation bug 2026-06-20 23:24:48 +08:00
chiguyong d716d30c6d chore: clean up repo structure and fix config
Deploy EternalAI / deploy (push) Has been cancelled Details
- Remove node_modules/ from git tracking (was committed by mistake)
- Delete stub files: src/index.js, scripts/deploy.sh (empty)
- Fix CI/CD: trigger on master (not main), remove nonexistent build step
- Rewrite README to match actual HTML5 SPA project
- Fix package.json: remove embedded credentials from repo URL
- Update .gitignore: add .DS_Store, *.log, .env
2026-06-20 20:05:19 +08:00
chigulong 2a13044f12 Configure EternalAI project with Express server and deployment scripts 2026-06-20 18:13:44 +08:00