import{_ as t}from"./split-1-1db7d146.js";import{_ as o,r as n,o as r,c,b as e,d as i,e as s,a as l}from"./app-4f4af2d5.js";const d={},h=l('

前后端整体部署

提示

项目采用的是前后端分离的模式开发,但是支持前端和后端绑定部署。

1、首先确认前端代码 打包基础目录是否正确

下图中 /client/ 代表打包后代码文件必须在一个 client 目录下

配置打包路径

2、打包前端代码

打包后的前端代码,位于 dist 文件夹中

npm run build

3、将打包后的代码放到 后端项目 的 wwwroot 目录下

例如:/wwwwroot/client/ 这里的 client 目录根据你代码配置 /client/ 而定

4、部署 Net7 后端项目

后端部署以个人需求而定,这里不做详细说明,请自行百度 或者 GPT。

5、访问

`,13),p={href:"http://localhost:%E5%90%8E%E7%AB%AF%E7%AB%AF%E5%8F%A3/",target:"_blank",rel:"noopener noreferrer"};function u(_,b){const a=n("ExternalLinkIcon");return r(),c("div",null,[h,e("blockquote",null,[e("p",null,[e("a",p,[i("http://localhost:后端端口/"),s(a)])])])])}const k=o(d,[["render",u],["__file","simple.html.vue"]]);export{k as default};