提交更改
This commit is contained in:
parent
6713d2b7d2
commit
deb153a624
@ -58,9 +58,31 @@ cover:
|
||||
# 當沒有設置cover時,默認的封面顯示
|
||||
default_cover:
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/00E0F0ED-9F1C-407A-9AA6-545649D919F4.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/41F215B9-261F-48B4-80B5-4E86E165259E.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/2884F904-F1F3-479E-AE27-5EBC291B63B0.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/67239FBB-E15D-4F4F-8EE8-0F1C9F3C4E7C.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/B18FCBB3-67FD-48CC-B4F3-457BA145F17A.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/B951AE18-D431-417F-B3FE-A382403FF21B.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/BBC19066-E176-47C2-9D22-48C81EE5DF6B.jpeg
|
||||
- https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper@1.0.0/abstract/BBC19066-E176-47C2-9D22-48C81EE5DF6B.jpeg
|
||||
|
||||
avatar:
|
||||
img: https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/20170331090953_zUcaS.thumb.1000_0.jpeg
|
||||
# effect: true # 头像会一直转圈
|
||||
# Inject the css and script (aplayer/meting)
|
||||
|
||||
aplayerInject:
|
||||
enable: true
|
||||
per_page: true
|
||||
inject:
|
||||
head:
|
||||
bottom:
|
||||
- <div class="aplayer no-destroy" data-id="7427714271" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-lrctype="1" data-preload="none" data-autoplay="true" muted></div>
|
||||
- <script async src="https://npm.elemecdn.com/tzy-blog/lib/js/other/sakura.js"></script>
|
||||
pjax:
|
||||
enable: true
|
||||
exclude:
|
||||
|
||||
# social:
|
||||
# fab fa-github: https://github.com/xxxxx || Github
|
||||
# fas fa-envelope: mailto:xxxxxx@gmail.com || Email
|
||||
wordcount:
|
||||
enable: true
|
||||
@ -3,7 +3,7 @@
|
||||
## Source: https://github.com/hexojs/hexo/
|
||||
|
||||
# Site
|
||||
title: Xiaoda的博客
|
||||
title: XiaodaのBlog
|
||||
#subtitle: 'XiaodaBlog'
|
||||
description: '欢迎访问小达的博客!'
|
||||
keywords: 编程
|
||||
@ -109,3 +109,7 @@ deploy:
|
||||
type: 'git'
|
||||
repo: https://gitee.com/wenyongda/xiaoda-blog.git
|
||||
branch: master
|
||||
|
||||
aplayer:
|
||||
meting: true
|
||||
asset_inject: false
|
||||
@ -26,8 +26,10 @@
|
||||
"hexo-renderer-pug": "^3.0.0",
|
||||
"hexo-renderer-stylus": "^2.1.0",
|
||||
"hexo-server": "^3.0.0",
|
||||
"hexo-tag-aplayer": "^3.0.4",
|
||||
"hexo-theme-landscape": "^0.0.3",
|
||||
"hexo-theme-volantis": "^5.7.6",
|
||||
"hexo-wordcount": "^6.0.1",
|
||||
"save": "^2.9.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,4 +24,68 @@ docker run -d -p 80:80 -p 443:443 --name nginxweb --privileged=true
|
||||
|
||||
|
||||
ps aux | grep "nginx: worker process" | awk '{print $1}'
|
||||
```
|
||||
```
|
||||
|
||||
## 部署.Net Core 至 IIS
|
||||
|
||||
新建Item
|
||||
|
||||

|
||||
|
||||
配置Git
|
||||
|
||||

|
||||
|
||||
添加Git账户
|
||||
|
||||

|
||||
|
||||
指定Jenkins从Git拉取代码目录
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
指定Jenkins定时获取Git
|
||||
|
||||
时间设置成:H/2 * * * *
|
||||
|
||||
意思是每2分钟检查Git是否有变化,如果有变化就会重新构建和部署
|
||||
|
||||

|
||||
|
||||
构建步骤
|
||||
|
||||
因为Jenkins在Windows环境下所以使用 Execute Windows batch command
|
||||
|
||||

|
||||
|
||||
命令:
|
||||
|
||||
```powershell
|
||||
c:
|
||||
// 切换到Git拉取代码目录
|
||||
cd C:\Users\Administrator\Documents\source\XiaodaERP
|
||||
// 构建.Net Core应用
|
||||
dotnet build
|
||||
// 停止应用程序池 saas
|
||||
C:\Windows\System32\inetsrv\appcmd.exe stop apppool /apppool.name:saas
|
||||
// 发布.Net Core应用 需指定发布文件目录
|
||||
dotnet publish -o D:\subendong\release\saas
|
||||
// 启动应用程序池 saas
|
||||
C:\Windows\System32\inetsrv\appcmd.exe start apppool /apppool.name:saas
|
||||
```
|
||||
|
||||
IIS服务器应用程序池必须为无代码托管
|
||||
|
||||
为防止生产环境Swagger无法使用,需在构建后的文件夹中编辑web.conf文件
|
||||
|
||||

|
||||
|
||||
添加如下代码
|
||||
|
||||
```xml
|
||||
<environmentVariables>
|
||||
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
|
||||
</environmentVariables>
|
||||
```
|
||||
|
||||
@ -167,7 +167,7 @@ Connected to an idle instance.
|
||||
启动监听
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
#### 1.1.1.2 Docker方式
|
||||
|
||||
@ -207,7 +207,7 @@ docker logs -f # 字符串ID
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
安装完成
|
||||
|
||||
@ -270,19 +270,19 @@ Grant succeeded.
|
||||
|
||||
工具栏 -> 工具 -> 首选项 -> 代码编辑器 -> 完成设置
|
||||
|
||||

|
||||

|
||||
|
||||
### 2.1.2 设置代码模板
|
||||
|
||||
工具栏 -> 工具 -> 首选项 -> 代码编辑器 -> 代码模板
|
||||
|
||||

|
||||

|
||||
|
||||
### 2.1.3 同时打开多个表
|
||||
|
||||
工具栏 -> 工具 -> 首选项 -> 数据库 ->对象查看器
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ top_img: https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper/abstract/B951AE1
|
||||
|
||||
## 设置引用图片存储路径
|
||||
|
||||

|
||||

|
||||
|
||||
## Typora添加右键新建Markdown文件
|
||||
|
||||
@ -60,4 +60,4 @@ Windows Registry Editor Version 5.00
|
||||
|
||||
删除多余的文件(尤其是有一个什么Markdown File),只保留如下的两项。然后关闭注册表,即可修复bug
|
||||
|
||||

|
||||

|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user