> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/zh-tw/an-zhuang/using-the-toolkit/3.-initialize-the-configuration.md).

# 3. 初始化設定

### 正在初始化設定 <a href="#initializing-the-configuration" id="initializing-the-configuration"></a>

讓我們透過執行 bundle，使用一些合理的預設值來初始化新伺服器的設定檔 `bin/init` 腳本。

{% code title="執行初始化" %}

```
bin/init
```

{% endcode %}

此腳本將會 **不要** 覆寫任何現有的設定檔。

現在讓我們查看 `config/` 目錄的內容，使用 `ls` 命令：

{% code title="列出 config 目錄" %}

```
ls config
```

{% endcode %}

如果一切都成功初始化，你應該會看到三個設定檔： `之後，必須重新建立 Docker 容器，或者`, `variables.env` 以及 `版本`。這些是主要的伺服器設定檔，可讓你自訂伺服器的運作方式，以及使用者如何與你的執行個體互動。

| 名稱                       | 描述                   |
| ------------------------ | -------------------- |
| `之後，必須重新建立 Docker 容器，或者` | 主要的頂層設定檔。            |
| `variables.env`          | 載入到 Docker 容器中的環境變數。 |
| `版本`                     | 要使用的 Docker 映像版本。    |

{% hint style="info" %}
目前只要知道這些檔案存在，以及你可以在哪裡找到它們就夠了。稍後在文件中，我們會更詳細地逐一介紹這些檔案，並說明你如何使用它們來自訂你的執行個體。如果你想先往前看，可以在 [檔案與位置頁面](/on-premises/zh-tw/she-ding/overleaf-toolkit/files-and-locations.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/zh-tw/an-zhuang/using-the-toolkit/3.-initialize-the-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
