Skip to content

Commit c323edf

Browse files
authored
chore: add description for ignore-stderr (#18)
1 parent 9ce6764 commit c323edf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ eggctl start [options] [baseDir]
4848
- `port` - listening port, default to `process.env.PORT`, if unset, egg will use `7001` as default.
4949
- `title` - process title description, use for kill grep, default to `egg-server-${APP_NAME}`.
5050
- `workers` - numbers of app workers, default to `process.env.EGG_WORKERS`, if unset, egg will use `os.cpus().length` as default.
51-
- `daemon` - whether run at background daemon mode.
51+
- `daemon` - whether run at background daemon mode, don't use it if in docker mode.
5252
- `framework` - specify framework that can be absolute path or npm package, default to auto detect.
5353
- `env` - server env, default to `process.env.EGG_SERVER_ENV`, recommended to keep empty then use framwork default env.
5454
- `stdout` - customize stdout file, default to `$HOME/logs/master-stdout.log`.
@@ -60,6 +60,8 @@ $ eggctl start [options] [baseDir]
6060

6161
Stop egg gracefull.
6262

63+
**Note:** if exec without `--title`, it will kill all egg process.
64+
6365
```bash
6466
# stop egg
6567
$ eggctl stop [--title=example]

lib/cmd/start.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,14 @@ class StartCommand extends Command {
210210
if (hasError) {
211211
try {
212212
const [ stdout ] = yield exec('tail -n 100 ' + stderr);
213+
this.logger.error('Got error when startup: ');
213214
this.logger.error(stdout);
214215
} catch (_) {
215216
// nothing
216217
}
217218
isSuccess = ignoreStdErr;
218219
this.logger.error('Start got error, see %s', stderr);
220+
this.logger.error('Or use `--ignore-stderr` to ignore stderr at startup.');
219221
}
220222

221223
if (!isSuccess) {

0 commit comments

Comments
 (0)