fix(k8s): 同步 local 模式数据路径为 /app/sqlite3.db 与二进制同级
- deployment/quick-deploy: PVC 挂载 sqlite3.db/redka.db 到 /app/,含旧 data/ 迁移 - configmap 与 run.sh 状态输出对齐新路径 - README 补充 local 模式说明
This commit is contained in:
1 parent
d27a2e6cbe
commit
8df0acb338
7 files changed
+71
-10
No files matched your search
@@ -238,7 +238,7 @@ cmd_dev() {
|
||||
info "前端地址: http://localhost:$FRONTEND_PORT"
|
||||
info "后端地址: http://localhost:$BACKEND_PORT"
|
||||
info "健康检查: http://localhost:$BACKEND_PORT/health"
|
||||
info "数据库: SQLite (backend/sqlite3.db)"
|
||||
info "数据库: SQLite (./sqlite3.db)"
|
||||
echo ""
|
||||
info "使用 './run.sh stop' 停止服务"
|
||||
else
|
||||
@@ -272,9 +272,12 @@ cmd_status() {
|
||||
else
|
||||
warning "前端: 未运行"
|
||||
fi
|
||||
if [ -f "$SCRIPT_DIR/$BACKEND_DIR/sqlite3.db" ]; then
|
||||
if [ -f "$SCRIPT_DIR/sqlite3.db" ]; then
|
||||
local db_size=$(du -h "$SCRIPT_DIR/sqlite3.db" | cut -f1)
|
||||
info "数据库: SQLite (./sqlite3.db, $db_size)"
|
||||
elif [ -f "$SCRIPT_DIR/$BACKEND_DIR/sqlite3.db" ]; then
|
||||
local db_size=$(du -h "$SCRIPT_DIR/$BACKEND_DIR/sqlite3.db" | cut -f1)
|
||||
info "数据库: SQLite (sqlite3.db, $db_size)"
|
||||
info "数据库: SQLite (backend/sqlite3.db 旧路径, $db_size)"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user