指定环境运行不打印日志不能热更新

Open
#293 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

Start by running cross-env EGG_SERVER_ENV=test DEBUG=* egg-bin dev on Windows 11 and compare it with egg-bin dev, checking both logging and reload behavior. Trace the egg-bin dev entry point and its environment-variable handling. Done means the specified environment retains concise necessary logs and code changes trigger automatic hot updates.

Written by the indexing model from the issue text.

Description

Windows 11 下执行以下命令:

cross-env EGG_SERVER_ENV=test DEBUG=* egg-bin dev
  1. 不带 DEBUG=* 则不打印日志,带了则啰嗦一大片
  2. 修改代码不能自动热更新

期望带环境也跟egg-bin dev效果一致:

  1. 克制和必要的日志打印
  2. 修改文件自动热更新。
Dominant language
TypeScript
Stars
191
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eggjs/bin

All issues in eggjs/bin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.