Files
ARTEX-chixuweihu/dev.sh
T
ji ruo 659e43e91e release(v0.3.35): sandbox upgrade guard, shell timezone i18n, and release notes
- Add validate_sandbox_compose check and compose snapshot backup/restore in deploy-lib.sh
- Show both git clone and non-git sync upgrade commands in sandbox page and settings card
- Gate standalone-to-sandbox warning in update modal to Docker non-sandbox mode only
- Add timezone-based zh/en auto-switching (with ARTEX_LANG override) across shell scripts
- Extract CHANGELOG.md section into GitHub Release notes and add v0.3.35 release notes
2026-12-04 16:45:32 +08:00

24 lines
969 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 开发模式:后端(:8787) + 流量代理(:8788) 与 前端 next dev(:5173) 一起跑。
# 前端 /api 反代到后端;Ctrl-C 一并退出。
#
# 单二进制(前端内嵌)方式见 README「单二进制」一节,不走这个脚本。
set -euo pipefail
cd "$(dirname "$0")"
# shellcheck source=scripts/deploy-lib.sh
. ./scripts/deploy-lib.sh
# 退出时结束本进程组内的所有子进程(后端 + 前端)。
cleanup() { kill 0 2>/dev/null || true; }
trap cleanup EXIT INT TERM
# 后端(普通 go run,不内嵌前端);并发 work agent 数在「系统设置」里配置。
go run ./cmd/artex -addr :8787 -proxy 127.0.0.1:8788 &
# 前端热更新(Vite/Next dev server,/api 反代到 :8787)。
( cd web && npm run dev ) &
echo "$(msg '[dev] 后端 :8787 / 代理 :8788 / 前端 http://localhost:5173 (Ctrl-C 退出)' '[dev] Backend :8787 / Proxy :8788 / Frontend http://localhost:5173 (Ctrl-C to exit)')"
wait