> 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/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」搜尋使用者，然後前往其 **專案** 分頁，在清單中找到該專案並點擊資訊圖示；或者直接前往已知 project-id 的頁面 [**https://your-instance-url/admin/project/**](https://your-instance-url/admin/project/)。在專案資訊頁面中，你可以找到一個 **轉移擁有權** 按鈕，會開啟一個對話框，你可以指定任何使用者作為新的擁有者。新擁有者不需要是該專案現有的協作者。

{% hint style="info" %}
請注意，作為擁有權轉移流程的一部分，前任擁有者將會被加入為協作者，並具有該專案的讀寫權限。
{% endhint %}

### 更新專案編譯逾時時間&#x20;

專案的預設編譯逾時目前設為 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 %}

這將同時提供 `時間戳記`, `使用者 ID` 以及 `專案 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://overleaf-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.
