mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-02 20:01:51 +08:00
- Add standalone edition (`Dockerfile.standalone`, `docker-compose.standalone.yml`) alongside sandbox edition and publish both in `.github/workflows/release.yml`. - Implement `scripts/deploy-lib.sh`, `install.sh`, `update.sh`, and `scripts/artex-sandbox-firewall.sh --cleanup` with edition detection, legacy standalone -> sandbox migration (symlink-safe workspace permissions), automatic snapshots with pinned `artex-rollback/*` images + PG dump, auto/manual cross-edition rollback, and post-rollback upstream unpinning. - Update `ensureWritableDir` in `internal/sandbox/manager.go` to safely migrate nested root-owned workspace files without following symlinks. - Expose `deploy_edition` in `/api/update/check` and update `UpdateCard` UI/i18n warnings for sandbox vs standalone in-app update/rollback. - Reconcile `artex-gateway` TUN policy routing (`priority 218`, `raw PREROUTING`, `nat POSTROUTING`, `DOCKER-USER`) every 15s to self-heal after host network rule flushes or bridge changes. - Add unit and shell tests (`scripts/deploy_test.sh`, `cmd/artex-gateway/tun_linux_test.go`, `internal/sandbox/sandbox_test.go`, `server/update_test.go`) and update `README.md` / `.env.example`.
63 lines
1.0 KiB
Plaintext
63 lines
1.0 KiB
Plaintext
# backend
|
|
/data/
|
|
*.db
|
|
*.db-wal
|
|
*.db-shm
|
|
config.json
|
|
scheduler_state.json
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
|
|
# frontend
|
|
web/node_modules/
|
|
web/.next/
|
|
web/tsconfig.tsbuildinfo
|
|
web/next-env.d.ts
|
|
.vercel/
|
|
web/public/demo-version.json
|
|
*.local
|
|
|
|
# development tools
|
|
.playwright-mcp/
|
|
.playwright-cli/
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
|
|
# docs
|
|
/docs/
|
|
|
|
# os
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# claude code local state
|
|
.claude/
|
|
|
|
# 内嵌前端的单二进制产物
|
|
/artex
|
|
# 一键更新在可执行文件旁留下的中间产物(暂存件 / 备份 / 失败版本 / 升级标记)
|
|
/artex.new
|
|
/artex.new.sha256
|
|
/artex.old
|
|
/artex.failed
|
|
/artex.upgrade.json
|
|
/server/webui/dist/
|
|
/dist/
|
|
|
|
# JWT 签名密钥(运行时生成,存项目根,绝不提交)
|
|
/jwt.key
|
|
|
|
# Docker 部署生成的本地环境与升级回滚快照(含密码/密钥/数据库备份,绝不提交)
|
|
.env
|
|
.artex-deploy/
|
|
# 调度器运行/模拟产生的事件日志(测试产物,不提交)
|
|
*-events.csv
|
|
|
|
# bench 基准测试相关(本地产物,不提交)
|
|
/bench/
|
|
/Dockerfile.bench
|
|
/Dockerfile.bench.v2
|