|
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 |
||
|---|---|---|
| .gitea/workflows | ||
| deploy | ||
| docs | ||
| e2e | ||
| img | ||
| prisma | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| Eternal_AI_PRD_v1.docx | ||
| README.md | ||
| app.js | ||
| ecosystem.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.js | ||
| server.js | ||
| styles.css | ||
README.md
Eternal AI
AI 陪伴平台 — 开放给人设创作者进行人设设定并发布,生成 Hermes agent 可用的配置文件(Soul.md + config.yaml)。
项目结构
EternalAI/
├── index.html # 单页应用入口(9 个视图)
├── app.js # 应用逻辑(路由、状态管理、表单生成)
├── styles.css # 样式(玻璃拟态、深空背景)
├── server.js # Express 静态服务器(端口 3001)
├── img/ # 背景与卡片素材
├── docs/plans/ # 规划文档
├── Eternal_AI_PRD_v1.docx # 产品需求文档
└── package.json
快速开始
# 方式一:Express 服务器
npm install && npm start
# → http://localhost:3001
# 方式二:任意静态服务器
python3 -m http.server 8083
# → http://localhost:8083
页面一览
| 页面 | 视图 ID | 说明 |
|---|---|---|
| 首页 | landing | 两张入口卡片 + 底部链接 |
| 登录/注册 | auth | 登录态分流 |
| 角色库 | role-library | 创作者上架的角色列表 |
| 角色详情 | role-detail | 单个角色详情 + 付款流程 |
| 蒸馏前任 | distill | 自营情感服务介绍页 |
| 关于 Eternal AI | about | 平台简介 + FAQ |
| 创作者入驻 | onboarding | 合作说明 + 微信联系方式 |
| 创作者管理中心 | creator-center | 角色/收入/设置 三 tab |
| 角色编辑 | creator | 4 步表单 → 生成 Soul.md + config.yaml |
技术栈
- 纯前端 HTML5 SPA(IIFE 模式,无框架)
- localStorage 持久化登录态
- Express 静态文件服务
- 玻璃拟态 UI + 深空背景