fix(deploy): align submission runtime and archive configuration - #68
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本 PR 收敛初赛源码交付所需的运行配置、启动入口、目录说明和归档边界,使源码仓库中的部署约定与最终提交版本保持一致,同时保留正常的研发目录结构。
主要改动
1. 统一运行配置入口
backend/config.py,保留backend/app/core/config.py兼容导入,满足交付规范并避免破坏既有调用。frontend/src/config.js,由环境变量控制 API 地址等运行参数。2. 补齐前后端启动与说明
backend/start.ps1、frontend/start.ps1,提供独立的一键启动入口。3. 修正部署环境下的导入与状态契约
4. 收敛归档内容
.gitattributes和.gitignore排除本地 Agent 配置、平台元数据、缓存及构建产物。node_modules、本机.env、密钥、数据库运行目录或临时脚本。验证
python -m pytest backend -q:2120 passed,59 skippedruff check .:通过ruff format --check .:241 files already formattedcorepack pnpm typecheck:通过corepack pnpm build:通过(保留现有大 chunk 提示,不影响构建产物)范围说明
backend、frontend的交付目录;测试、文档、脚本和 Docker 配置仍作为研发资产保留。