vue2 安装打包部署

vue2项目搭建记录

 

mkdir -p /opt/wks/online_pre/1006

cd /opt/wks/online_pre/1006

mkdir hongyun-ui

 

/opt/code/vue2/node_modules/.bin/vue init webpack hongyun-ui


cd hongyun-ui
npm run dev

 

vim /etc/security/limits.conf

*               soft     nproc          10240 
*               hard    nproc           10240 
*               soft     nofile          10240 
*               hard    nofile          10240 
cd hongyun-ui
npm run build
cd dist/
cp /opt/dbmng/bin/caddy .
./caddy
http://localhost:2015/#/

 

posted @ 2020-10-06 17:33  方诚  阅读(1015)  评论(0编辑  收藏  举报