fix(ops): HTTP 超时、env status 只读;test/dev 镜像重建 schema 25
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -342,6 +342,9 @@ func (s *Server) Start() error {
|
||||
Addr: addr,
|
||||
Handler: s.Routes(),
|
||||
ReadHeaderTimeout: 10 * time.Second,
|
||||
ReadTimeout: 60 * time.Second,
|
||||
WriteTimeout: 120 * time.Second,
|
||||
IdleTimeout: 120 * time.Second,
|
||||
}
|
||||
|
||||
return s.httpServer.ListenAndServe()
|
||||
|
||||
@@ -85,7 +85,10 @@ run_compose() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
prepare_env_file "${target}"
|
||||
# status/ps 为只读查询,不隐式创建配置或数据目录
|
||||
if [[ "${act}" != "status" && "${act}" != "ps" ]]; then
|
||||
prepare_env_file "${target}"
|
||||
fi
|
||||
|
||||
local env_arg=""
|
||||
if [[ -f "${env_file}" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user