forked from yubaolee/OpenAuth.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# 更新日志 | ||
|
||
`OpenAuth.Core 2.0` | ||
* 【新增】框架升级至.net core sdk 3.1.100 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
# 发布部署 | ||
# 部署 | ||
|
||
以控制台方式部署: | ||
::: tip | ||
因.net core内部有自托管的Web服务器,推荐使用控制台方式部署 | ||
::: | ||
|
||
* 站点OpenAuth.Mvc部署: | ||
## 站点OpenAuth.Mvc部署 | ||
|
||
直接在解决方案资源管理器中,选中OpenAuth.Mvc右键【发布】,出现下面的配置框,使用文件系统即可: | ||
* 修改部署环境的连接字符串信息,特别注意是`appsettings.Production.json`文件: | ||
 | ||
|
||
::: warning | ||
dotnet core的正式环境和测试环境的切换是通过环境变量ASPNETCORE_ENVIRONMENT来控制的。 | ||
在centos切换成正式可以用 | ||
```shell | ||
export ASPNETCORE_ENVIRONMENT=Production | ||
``` | ||
在Widows系统中需要做相同的配置 | ||
|
||
::: | ||
|
||
* 直接在解决方案资源管理器中,选中OpenAuth.Mvc右键【发布】,出现下面的配置框,使用文件系统即可: | ||
|
||
 | ||
|
||
发布完成后可以在输出目录看到发布详情(红色框内即为发布的文件夹): | ||
* 发布完成后可以在输出目录看到发布详情(红色框内即为发布的文件夹): | ||
|
||
 | ||
|
||
发布【OpenAuth.Mvc】完成后进入文件目录【netcoreapp2.1\publish】,直接使用`dotnet openauth.mvc.dll` 命令启动。启动成功后使用浏览器打开http://localhost:1802 即可访问,如下图所示: | ||
* 发布【OpenAuth.Mvc】完成后进入文件目录【netcoreapp2.1\publish】,直接使用`dotnet openauth.mvc.dll` 命令启动。启动成功后使用浏览器打开http://localhost:1802 即可访问,如下图所示: | ||
|
||
 | ||
|
||
|
||
 | ||
## 接口OpenAuth.WebApi部署 | ||
|
||
* 接口OpenAuth.WebApi部署请查看[企业版](http://openauth.me/question/detail.html?id=a2be2d61-7fcb-4df8-8be2-9f296c22a89c)内部文档 | ||
请查看[企业版](http://openauth.me/question/detail.html?id=a2be2d61-7fcb-4df8-8be2-9f296c22a89c)内部文档 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters