egg-scripts-autodeploy
v2.13.0
Published
deploy tool for egg project for autodeploy
Downloads
1
Readme
egg-scripts-autodeploy
deploy tool for egg project. Fork自egg-scripts,增加--mongodb_pwd、--redis_pwd两个参数输入
Note: Windows is partially supported, see #22
Install
$ npm i egg-scripts-autodeploy --save
Usage
Add egg-scripts-autodeploy
to package.json
scripts:
{
"scripts": {
"start": "egg-scripts-autodeploy start --daemon",
"stop": "egg-scripts-autodeploy stop"
}
}
Then run as:
npm start
npm stop
Note: egg-scripts-autodeploy
is not recommended to install global, you should install and use it as npm scripts.
Command
start
Start egg at prod mode.
$ eggctl start [options] [baseDir]
# Usage
# eggctl start --port=7001
# eggctl start ./server
- Arguments
baseDir
- directory of application, default toprocess.cwd()
.
- Options
port
- listening port, default toprocess.env.PORT
, if unset, egg will use7001
as default.title
- process title description, use for kill grep, default toegg-server-${APP_NAME}
.workers
- numbers of app workers, default toprocess.env.EGG_WORKERS
, if unset, egg will useos.cpus().length
as default.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 toprocess.env.EGG_SERVER_ENV
, recommended to keep empty then use framwork default env.stdout
- customize stdout file, default to$HOME/logs/master-stdout.log
.stderr
- customize stderr file, default to$HOME/logs/master-stderr.log
.timeout
- the maximum timeout when app starts, default to 300s.ignore-stderr
- whether ignore stderr when app starts.sourcemap
/typescript
/ts
- provides source map support for stack traces.node
- customize node command path, default will find node from $PATH
stop
Stop egg gracefull.
Note: if exec without --title
, it will kill all egg process.
# stop egg
$ eggctl stop [--title=example]
- Options
title
- process title description, use for kill grep.
Questions & Suggestions
Please open an issue here.