## 后端部署
**环境**
**php7.2+nigix1.15+mysql8.0+redis**
* * *
**1.添加站点,程序根目录指向public目录**

配置伪静态

location /{
if (!-e $request\_filename) {
rewrite ^(.\*)$ /index.php/$1 last;
break;
}
}
php拓展勾选redis

* * *
**2.创建数据库**

* * *
**3.导入数据库**

* * *
**4.数据库文件配置**

* * *
**5.后台部署完成,通过后台入口路径访问后台**


## 前端部署
前端部署代码需要下载HBuilder X
[https://www.dcloud.io/hbuilderx.html](https://www.dcloud.io/hbuilderx.html)

* * *
1.将前端代码导入到HBuilder X,修改接口请求路径为你的域名

* * *
2.重新获取新的uni-app应用标识

* * *
3.顶部工具发行,选择发行到**网站-PC web或手机h5**

* * *
4.将编译后的文件传到后端h5目录


* * *
5.前端部署完成,通过域名/h5即可访问

