前端發布流程


1、.項目跟目錄下有個build.sh

rm -rf build/*
yarn config set registry http://npm.baijiahulian.com
yarn
yarn build
2、ci jenkins 配置

source ~/.bashrc
WORKDIR="/apps/website/wolong_fe"
PROJECT_NAME="wolong_fe"
DESC_IP="172.16.34.113"
DEPLOY_USER="root"

chmod 777 ./build.sh
node -v
npm -v
./build.sh devlopment
scp -r ./dist/* $DEPLOY_USER@$DESC_IP:$WORKDIR

 

 

3 nginx 配置

 

 root 命令執行index.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM