|
yum install nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org 1013 curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo 1014 yum install -y yarn 1015 yarn -v 1016 npm install -g pm2 1017 pm2 -v 1018 df -h 1019 git -v 1020 git -version
git clone https://github.com/ly525/luban-h5.git 1023 cd luban-h5/ 1024 ./luban-h5.sh init 1025 ls 1026 ll 1027 ./luban-h5.sh start 1028 pm2 list 1029 ls 1030 cd back-end/ 1031 ls 1032 cd h5-api/ 1033 ls 1034 ll 1035 cd api
./luban-h5.sh init
./luban-h5.sh start
./luban-h5.sh stop
pm2 list
-------------------
分别更新编译front 与backend
cd front-end/h5 && yarn && yarn build
cd back-end/h5-api && yarn && NODE_ENV=production yarn build
|