阿里云centos7服务器——Vue项目部署

  1. 上传打包后的dist文件夹中的内容。
    打包vue项目
    其中需要注意修改的assetsPublicPath一定是build而不是dev中的

  2. 将项目部署在服务器上
    使用nginx部署
    注意添加安全组,每次修改nginx.conf配置文件后都要重启nginx服务:nginx -s reload

猜你喜欢

转载自blog.csdn.net/Wind_waving/article/details/106247137