> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/on-premises/zh-tw/shi-yong-zhe-yu-zhuan-an-guan-li/project-management.md).

# 專案管理

### 檢視專案的稽核記錄

管理員可以看到一份 **稽核記錄** ，適用於每個專案。此稽核記錄會顯示各種事件，例如連結分享在私人／以權杖為基礎之間變更、邀請何時送出／接受，以及使用者何時透過權杖加入專案。管理員可以透過以下方式按專案檢視這些記錄： **你的執行個體** -> **管理員** -> **管理使用者** 然後：

* 搜尋使用者
* 點擊 **專案** 分頁
* 選擇一個專案
* 點擊 (i) 圖示
* 點擊 **稽核記錄** 分頁

如果某個專案與具名協作者（使用其電子郵件地址）共享，一旦收件者加入，他們就會列在分享對話框中，顯示其權限，且專案擁有者可見。管理員在透過管理面板檢視該專案的「專案資訊」分頁時，也會看到這些資訊。

### 復原已刪除的文件

1. 使用你的管理員憑證登入
2. 點擊 **管理員** 並選擇 **管理使用者**
3. 使用搜尋欄位，輸入你想為其還原文件的使用者電子郵件
4. 點擊結果清單中的其電子郵件地址，以開啟其使用者資訊頁面
5. 點擊 **專案** 分頁，並使用搜尋欄位搜尋該專案
6. 點擊專案名稱旁邊的資訊圖示以開啟 **專案資訊**
7. 點擊 **已刪除的文件** 分頁
8. 點擊 **取消刪除** 按鈕，將其還原回使用者的專案中。

還原後的檔案將採用以下格式： `檔名-時間戳記.副檔名`。例如， `main.tex` 的還原版本會以檔名 `main-2024-02-23-130441542.tex`.

### 轉移專案所有權

Server Pro 中的管理面板為每個專案都有一個專屬頁面。你可以先在「/admin/user」中搜尋使用者，然後前往其 **專案** 分頁，從清單中找到該專案並點擊資訊圖示；或者直接以已知的專案 ID 瀏覽至頁面 [**https://your-instance-url/admin/project/**](https://your-instance-url/admin/project/)。在專案資訊頁面上，你可以找到一個 **轉移所有權** 按鈕，點開後會出現一個對話框，你可以在其中指定任何使用者成為新擁有者。新擁有者不必已經是該專案的現有協作者。

{% hint style="info" %}
請注意，前任擁有者將在所有權轉移過程中被加入為協作者，並擁有該專案的讀寫權限。
{% endhint %}

### 更新專案編譯逾時

目前專案的預設編譯逾時時間設為 180 秒。可以變更此值，但需要兩步驟程序。

首先，編輯 **config/variables.env** 檔案並加入 `COMPILE_TIMEOUT`環境變數，並將其值設為所需的逾時秒數。例如， `COMPILE_TIMEOUT=300` 代表 5 分鐘。

{% hint style="danger" %}
把逾時時間延長到 10 分鐘以上並不值得。如果這麼做，你很可能會在應用程式的其他元件遇到逾時。
{% endhint %}

完成這項變更後，你需要重新建立 **sharelatex** 容器，方法是執行 `bin/up -d`指令重新建立所有服務。

設定此環境變數只會更新新使用者的逾時值，它 **不會** 追溯套用到現有使用者，因為它是在使用者第一次建立時填入的。

若要調整現有使用者的逾時時間，你需要變更資料庫中的每一筆使用者記錄。我們強烈建議對此務必格外謹慎，並建議在進行任何變更前先建立一致的備份。

你可以在以下位置找到關於執行備份的資訊 [這裡](/on-premises/zh-tw/wei-hu/data-and-backups.md).

若要更新所有現有使用者的編譯逾時值，你需要在 Docker 主機上執行以下 shell 指令：

{% code overflow="wrap" %}

```bash
echo 'db.users.updateMany({}, {$set: {"features.compileTimeout": <value>}})' | docker exec -i mongo mongosh --quiet localhost/sharelatex
```

{% endcode %}

你需要將 `<value>` 替換為上方查詢中所需的逾時秒數值。

命令完成後，你應該會看到一則確認訊息，顯示已修改的記錄數量。接著你可以輸入 exit，然後按下 Enter 鍵返回主機 shell。

### 追蹤專案存取

可以使用以下指令查看誰在何時載入了某個專案：

{% code overflow="wrap" %}

```bash
docker exec sharelatex bash -c 'grep "join project request" /var/log/overleaf/web.log'
```

{% endcode %}

這將會提供以下兩者： `時間戳記`, `user_id` 以及 `project_id`.


---

# 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://ayakaleaf-pro.ayaka.space/on-premises/zh-tw/shi-yong-zhe-yu-zhuan-an-guan-li/project-management.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.
