diff --git a/README.md b/README.md index 2631494..e2e9775 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ $ eggctl start [options] [baseDir] - `port` - listening port, default to `process.env.PORT`, if unset, egg will use `7001` as default. - `title` - process title description, use for kill grep, default to `egg-server-${APP_NAME}`. - `workers` - numbers of app workers, default to `process.env.EGG_WORKERS`, if unset, egg will use `os.cpus().length` as default. - - `daemon` - whether run at background daemon mode. + - `daemon` - whether run at background daemon mode, don't use it if in docker mode. - `framework` - specify framework that can be absolute path or npm package, default to auto detect. - `env` - server env, default to `process.env.EGG_SERVER_ENV`, recommended to keep empty then use framwork default env. - `stdout` - customize stdout file, default to `$HOME/logs/master-stdout.log`. @@ -60,6 +60,8 @@ $ eggctl start [options] [baseDir] Stop egg gracefull. +**Note:** if exec without `--title`, it will kill all egg process. + ```bash # stop egg $ eggctl stop [--title=example] diff --git a/lib/cmd/start.js b/lib/cmd/start.js index 720a2cb..6286043 100644 --- a/lib/cmd/start.js +++ b/lib/cmd/start.js @@ -210,12 +210,14 @@ class StartCommand extends Command { if (hasError) { try { const [ stdout ] = yield exec('tail -n 100 ' + stderr); + this.logger.error('Got error when startup: '); this.logger.error(stdout); } catch (_) { // nothing } isSuccess = ignoreStdErr; this.logger.error('Start got error, see %s', stderr); + this.logger.error('Or use `--ignore-stderr` to ignore stderr at startup.'); } if (!isSuccess) {