nginx部署vue+springboot

vue項目打包,以下 npm run build 打包後會生成靜態頁面,在項目根路徑的dist文件夾下面 將該文件夾移到服務器的某個目錄下,我這裏是/root/vueproject 修改nginx配置文件,我這裏是/usr/local/nginx/conf/nginx.conf location / { root /root/vueproject/dist; //vue項目部署路
相關文章
相關標籤/搜索