美文网首页
xshell发布前端项目

xshell发布前端项目

作者: 小溪流jun | 来源:发表于2023-06-03 10:19 被阅读0次

vim nginx.conf

/root/nginx
在 linux机器电脑中的nginx文件夹里面执行vim nginx.conf
location /showscreen {
        alias /root/xxl/showscreen {
        index index.html;
        try_files $uri $uri/ xxl/showscreen/index.html;
}

修改vue.confige里面的路径

npm run build

在码云创建项目 showscreen

mkdir showscreen
rmdir showscreen
rm -rf showscreen
上传发布物

在/root/xxl中执行git clone

重启服务器

nginx -s reload:重启服务器

相关文章

网友评论

      本文标题:xshell发布前端项目

      本文链接:https://www.haomeiwen.com/subject/svxvedtx.html