|
il y a 3 ans | |
---|---|---|
app | il y a 3 ans | |
config | il y a 3 ans | |
test | il y a 4 ans | |
.autod.conf.js | il y a 4 ans | |
.eslintignore | il y a 4 ans | |
.eslintrc | il y a 4 ans | |
.gitignore | il y a 4 ans | |
.travis.yml | il y a 4 ans | |
README.md | il y a 4 ans | |
app.js | il y a 3 ans | |
appveyor.yml | il y a 4 ans | |
jsconfig.json | il y a 4 ans | |
package-lock.json | il y a 4 ans | |
package.json | il y a 4 ans | |
springboot-tsf-rbac.zip | il y a 4 ans |
tsp_view
see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
$ npm stop
npm run lint
to check code style.npm test
to run unit test.npm run autod
to auto detect dependencies upgrade, see autod for more detail.- 1.找到工程目录下的config文件夹,在这个文件夹下方根据原有的config.xxx.js复制新增一个config.xxx.js(xxx为环境变量,如dev)
- 2.可以根据环境修改config.xxx.js里的数据库地址等
- 3.找到工程目录下的package.json文件,找到json里key值为“scripts”
- 4.在“scripts”对应的vlaue下新增一个环境变量key 如sit
"sit": "egg-scripts start --env=sit --title=egg-server-faw-tsp-chart-admin",
"环境": "egg-scripts start --env=环境 --title=egg-server-faw-tsp-chart-admin",
- 5.对应在dockerfile的启动上使用 npm run xxx,sit环境启动是npm run sit