Skip to content

Commit

Permalink
docs: deployment via BaoTa
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored and LinkinStars committed Dec 13, 2024
1 parent fce2d45 commit 19de4e0
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';

There are multiple ways to start Apache Answer, you can choose the one that suits you best.

<Tabs>
<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker compose" default>

We recommend using Docker Compose to run Apache Answer. This is the easiest way to get started with Apache Answer.
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To back up data means that you have the option to roll back even if the upgrade

:::

<Tabs>
<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker Compose" default>

If you use docker-compose to install answer, it is very easy to upgrade.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';

有多种方式启动 Apache Answer,你可以选择最适合你的方式。

<Tabs>
<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker compose" default>

我们推荐使用 Docker Compose 来运行 Apache Answer。这是开始使用 Apache Answer 的最简单方法。
Expand Down Expand Up @@ -70,6 +70,42 @@ INSTALL_PORT=80 ./answer init -C ./answer-data/

:::

</TabItem>
<TabItem value="baota" label="宝塔面板">

首先需要安装宝塔面板 9.2.0 及以上版本,前往[宝塔面板](https://www.bt.cn/new/download.html?r=dk_answer)官网,选择正式版的脚本下载安装。

安装完成后,登录宝塔面板,点击左侧菜单栏的 `Docker`,进入应用商店,搜索 `Apache Answer`,点击安装进行配置:

![应用商店搜索安装](/img/docs/baota-install.png)

:::tip

首次会提示安装 `Docker``Docker Compose` 服务,点击立即安装,若已安装请忽略。

![安装Docker服务](/img/docs/baota-init-docker.png)

:::

需要填写以下内容用于完成基本配置的初始化:

- 名称:应用名称,默认 `answer_随机字符`
- 版本选择:默认 `latest`
- 允许外部访问:如你需通过 `IP+Port` 直接访问,请勾选,如你已经设置了域名,请不要勾选此处
- 端口:默认 `9080`,可自行修改
- 网站名称:站点名称,如 `Apache Answer`
- 访问地址:安装后将用来访问 Apache Answer 的浏览器地址
- 联系邮箱:负责本网站的主要联系人的电子邮件地址
- 管理员账号:管理员用户名
- 管理员密码:管理员密码
- 管理员邮箱:管理员邮箱。您需要此电子邮件才能登录,请务必记住管理员的邮箱和密码

![安装配置信息](/img/docs/baota-install-config.png)

点击确定提交后面板会自动进行应用初始化,不需要操作下文的安装步骤,等待初始化完成后即可通过刚才设置的**访问地址**进行访问。

恭喜你!开始你的 Apache Answer 之旅吧!

</TabItem>
</Tabs>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem';

:::

<Tabs>
<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker Compose" default>

如果你是使用docker-compose来安装answer,升级起来非常简单。
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh-CN/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"description": "Navbar item with label Download"
},
"item.label.ASF": {
"message": "阿帕奇软件基金会",
"message": "Apache软件基金会",
"description": "Navbar item with label ASF"
},
"item.label.Support": {
Expand Down
Binary file added static/img/docs/baota-init-docker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/docs/baota-install-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/docs/baota-install.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19de4e0

Please sign in to comment.