fix: Correct hidden imports in backend build.py
- Change app.auth to app.routers.auth (correct path) - Change app.routers.dify to app.routers.ai (actual module name) - Change app.routers.excel to app.routers.export (actual module name) - Remove app.routers.health (doesn't exist) - Add app.models and app.models.schemas Also add database credentials to config.json for embedded mode. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,13 +61,13 @@ def build():
|
||||
"--hidden-import", "app.main",
|
||||
"--hidden-import", "app.config",
|
||||
"--hidden-import", "app.database",
|
||||
"--hidden-import", "app.auth",
|
||||
"--hidden-import", "app.routers",
|
||||
"--hidden-import", "app.routers.auth",
|
||||
"--hidden-import", "app.routers.meetings",
|
||||
"--hidden-import", "app.routers.dify",
|
||||
"--hidden-import", "app.routers.health",
|
||||
"--hidden-import", "app.routers.excel",
|
||||
"--hidden-import", "app.routers.ai",
|
||||
"--hidden-import", "app.routers.export",
|
||||
"--hidden-import", "app.models",
|
||||
"--hidden-import", "app.models.schemas",
|
||||
# Collect package data
|
||||
"--collect-data", "pydantic",
|
||||
"--collect-data", "uvicorn",
|
||||
|
||||
@@ -14,19 +14,19 @@
|
||||
"database": {
|
||||
"host": "mysql.theaken.com",
|
||||
"port": 33306,
|
||||
"user": "",
|
||||
"password": "",
|
||||
"database": ""
|
||||
"user": "A060",
|
||||
"password": "WLeSCi0yhtc7",
|
||||
"database": "db_A060"
|
||||
},
|
||||
"externalApis": {
|
||||
"authApiUrl": "https://pj-auth-api.vercel.app/api/auth/login",
|
||||
"difyApiUrl": "https://dify.theaken.com/v1",
|
||||
"difyApiKey": "",
|
||||
"difySttApiKey": ""
|
||||
"difyApiKey": "app-oFptWFRlSgvwhJ8DzZKN08a0",
|
||||
"difySttApiKey": "app-xQeSipaQecs0cuKeLvYDaRsu"
|
||||
},
|
||||
"auth": {
|
||||
"adminEmail": "",
|
||||
"jwtSecret": "",
|
||||
"adminEmail": "ymirliu@panjit.com.tw",
|
||||
"jwtSecret": "your_jwt_secret_here",
|
||||
"jwtExpireHours": 24
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user