OpenAuth.Net/docs/net/deploy.md
2023-08-11 17:47:02 +08:00

33 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 发布部署
直接使用Visual Studio的发布功能发布到对应的文件夹
* OpenAuth.Mvc发布
![](/dotnetdeploy.png)
* OpenAuth.WebApi发布
![](/dotnetapideploy.png)
然后把对应的发布文件部署到IIS下。成功后直接访问
* [http://localhost:56813](http://localhost:56813) 为项目的主界面对应OpenAuth.Mvc项目。如下图所示
![说明](https://gitee.com/uploads/images/2018/0328/150659_6900820e_362401.png "说明")
* [http://localhost:52789/Swagger/ui/index](http://localhost:52789/Swagger/ui/index) 为项目WebApi接口部分对应OpenAuth.WebApi项目主要为其他项目提供数据接口及为OpenAuth.Mvc提供单点登录SSO功能。这是一个纯WebAPI项目本身是没有界面的所以3.0以前的版本会报找不到页面的错误为了美观增加了swagger的支持
![](/donetswagger.png)
::: warning 提别提醒
如果WebApi不是使用的52789端口需要在OpenAuth.Mvc的Web.config中修改下面配置
```xml
<add key="SSOPassport" value="http://localhost:你的端口号" />
```
:::