|
il y a 3 ans | |
---|---|---|
bin | il y a 3 ans | |
config | il y a 3 ans | |
model | il y a 3 ans | |
node_modules | il y a 3 ans | |
public | il y a 3 ans | |
routes | il y a 3 ans | |
views | il y a 3 ans | |
.env.example | il y a 3 ans | |
.gitignore | il y a 3 ans | |
README.md | il y a 3 ans | |
app.js | il y a 3 ans | |
package-lock.json | il y a 3 ans | |
package.json | il y a 3 ans |
安装必要的库
npm install
配置环境变量
vim ~/.bashrc
export DENET_CRYPT_KEY=aGijQgBf51VdlsED
export DENET_CRYPT_IV=fCHyw3VJxhU4biRF
source ~/.bashrc
启动
<!-- 开发环境启动 -->
NODE_ENV=dev ./node_modules/.bin/nodemon bin/www
<!-- 测试环境启动-->
NODE_ENV=test pm2 start bin/www
<!-- 线上环境启动 -->
NODE_ENV=prd pm2 start bin/www
健康检查
http://localhost:3000/nenet