Skip to content

Commit

Permalink
update shell
Browse files Browse the repository at this point in the history
  • Loading branch information
reruin committed Oct 17, 2019
1 parent 05a482e commit c52262f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ app.use(less(__dirname + '/public' , { dest: os.tmpdir() + '/sharelist'}))

// 配置静态资源加载中间件
app.use(koaStatic(__dirname + '/public'))
app.use(koaStatic(os.tmpdir()+'/sharelist'))

app.use(async (ctx , next) => {
ctx.state.__ = ctx.__.bind(ctx)
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
npm install
npm install pm2 -g

pm2 start app.js
pm2 start app.js --name sharelist --env prod
pm2 save
pm2 startup

Expand Down
2 changes: 1 addition & 1 deletion netinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ echo -e "|\n| Install Dependents ... "
npm install >/dev/null 2>&1
npm install pm2 -g >/dev/null 2>&1

pm2 start app.js >/dev/null 2>&1
pm2 start app.js --name sharelist --env prod >/dev/null 2>&1
pm2 save >/dev/null 2>&1
pm2 startup >/dev/null 2>&1

Expand Down

0 comments on commit c52262f

Please sign in to comment.