Skip to content

Commit

Permalink
chore(tools): 使用部署脚本安装的时候启动 --unsafe-perm 模式
Browse files Browse the repository at this point in the history
这样的话,使用 root 权限运行 postinstall 脚本就不会报错了(安全原因)

see npm/npm#3497
SamHwang1990/blog#5
  • Loading branch information
Liu's DeskTop committed Apr 25, 2018
1 parent ee00e67 commit de1f5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/deploy-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ git pull
cd ../crawler
npm i
cd ../crawler-api-backend
npm i
npm i --unsafe-perm
cd ../frontend
npm i
npm i --unsafe-perm
npm run build
systemctl restart crawler-backend-api.acm-statistics.service frontend.acm-statistics.service

0 comments on commit de1f5aa

Please sign in to comment.