File tree Expand file tree Collapse file tree 7 files changed +33
-399
lines changed Expand file tree Collapse file tree 7 files changed +33
-399
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ title: Docker 部署
7979
8080## 服务器部署
8181
82- ::: tip
83- 此教程以 https 为例,如果你没有相关经验,请自行 Google 进行了解
82+ ::: warning
83+ 此教程以 https 为例
8484:::
8585
8686::: info
@@ -94,10 +94,7 @@ title: Docker 部署
9494
95951 . 拉取代码到服务器
9696
97- 将代码拉取到服务器通常采用 ssh 方式(更安全),但是你也可以选择使用 https 方式,具体方式请根据个人自行决定,如果使用 ssh
98- 方式拉取代码,请自行 Google 拉取教程
99-
100- 如果使用 https 方式,你可以查看 [ 后端步骤 2] ( ../summary/quick-start.md#后端 )
97+ 将代码拉取到服务器通常采用 ssh 方式(更安全),当然你也可以选择使用 https 方式,具体方式请根据个人自行决定
10198
102992 . env
103100
@@ -109,7 +106,7 @@ title: Docker 部署
109106
110107 进入 ` deploy/backend/docker-compose ` 目录,按需修改 ` .env.server ` 文件
111108
112- ::: tip
109+ ::: info
113110 我们在 docker-compose 脚本内通过挂载的方式使用 ` .env.server ` 文件作为 fba 环境变量文件,因此,本地修改此文件,将同步更新至
114111 docker 容器,这意味着,修改环境变量将无需重新 build
115112 :::
@@ -130,9 +127,9 @@ title: Docker 部署
130127
1311283 . 按需修改配置文件 ` backend/core/conf.py `
132129
133- 4 . 更新脚本文件
130+ 4 . 更新 docker-compose 脚本
134131
135- @ [ code yml : collapsed-lines =6 ] ( ../../code/ docker-compose.yml)
132+ 脚本 ` docker-compose.yml ` 中有相关注释说明,根据需要进行修改即可
136133
1371345 . 执行一键启动命令
138135
Original file line number Diff line number Diff line change 22title : 传统部署
33---
44
5- ::: tip
5+ ::: info
66由于传统部署涉及修改的地方较多且较为复杂,因此无法提供此部署教程
77:::
88
9- ::: warning
9+ ::: tip
1010免费 SSL 证书推荐使用 [ httpsok-SSL证书自动续期] ( https://httpsok.com/p/4Qjd ) ,一行命令,轻松搞定 SSL
1111证书自动续签,支持:nginx、通配符证书、七牛云、腾讯云、阿里云、CDN、OSS、LB(负载均衡)
1212:::
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments