feat:仓库命名统一
This commit is contained in:
parent
389fe50cb9
commit
bcbb3615b5
|
|
@ -1,6 +1,6 @@
|
|||
APP_NAME=财务大模型智能问答客服系统
|
||||
ENVIRONMENT=development
|
||||
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai
|
||||
DATABASE_URL=postgresql+psycopg://finai:finai@127.0.0.1:5432/finai
|
||||
JWT_SECRET_KEY=change-me-in-production
|
||||
JWT_EXPIRE_MINUTES=480
|
||||
SMS_PROVIDER=mock
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ python -m uvicorn app.main:app --reload --port 8000
|
|||
默认会使用 `sqlite:///./finance_ai.db`。生产环境请复制 `.env.example` 为 `.env`,并配置:
|
||||
|
||||
```env
|
||||
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai
|
||||
DATABASE_URL=postgresql+psycopg://finai:finai@127.0.0.1:5432/finai
|
||||
JWT_SECRET_KEY=replace-with-secret
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[project]
|
||||
name = "finance-ai-qa-backend"
|
||||
name = "finai-backend"
|
||||
version = "0.1.0"
|
||||
description = "FastAPI backend for finance AI intelligent Q&A customer service system."
|
||||
requires-python = ">=3.11"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
POSTGRES_DB=finance_ai
|
||||
POSTGRES_USER=finance_ai
|
||||
POSTGRES_PASSWORD=finance_ai
|
||||
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@postgres:5432/finance_ai
|
||||
POSTGRES_DB=finai
|
||||
POSTGRES_USER=finai
|
||||
POSTGRES_PASSWORD=finai
|
||||
DATABASE_URL=postgresql+psycopg://finai:finai@postgres:5432/finai
|
||||
JWT_SECRET_KEY=change-me-in-production
|
||||
ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@ services:
|
|||
postgres:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-finance_ai}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-finance_ai}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-finance_ai}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-finai}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-finai}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-finai}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-finance_ai} -d ${POSTGRES_DB:-finance_ai}"]
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-finai} -d ${POSTGRES_DB:-finai}"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
|
|
@ -24,7 +24,7 @@ services:
|
|||
build:
|
||||
context: ../backend
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL:-postgresql+psycopg://finance_ai:finance_ai@postgres:5432/finance_ai}
|
||||
DATABASE_URL: ${DATABASE_URL:-postgresql+psycopg://finai:finai@postgres:5432/finai}
|
||||
JWT_SECRET_KEY: ${JWT_SECRET_KEY:-change-me-in-production}
|
||||
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-http://localhost:5173,http://127.0.0.1:5173,http://localhost}
|
||||
SMS_PROVIDER: mock
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ DB_USER="${DB_NAME}"
|
|||
DB_PASS="${DB_PASS:-}"
|
||||
FORCE_ENV="${FORCE_ENV:-0}"
|
||||
|
||||
SERVICE_NAME="finance-ai-backend"
|
||||
SERVICE_NAME="finai-backend"
|
||||
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
|
||||
|
||||
# ─── 工具函数 ──────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "finance-ai-frontend",
|
||||
"name": "finai-frontend",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "finance-ai-frontend",
|
||||
"name": "finai-frontend",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"marked": "^18.0.5",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "finance-ai-frontend",
|
||||
"name": "finai-frontend",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
"compileType": "miniprogram",
|
||||
"libVersion": "3.16.2",
|
||||
"appid": "wx8b0db4bf9ae7d778",
|
||||
"projectname": "finance-ai-miniapp",
|
||||
"projectname": "finai-miniapp",
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
|
|
|
|||
Loading…
Reference in New Issue