Files
data_transform/啟動網頁版的步驟.txt
2025-08-07 15:40:21 +08:00

31 lines
1.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Safe Launch 報告轉換系統 - 啟動步驟
## 方法一:直接啟動
1. 打開您電腦的「命令提示字元 (cmd)」或「Windows PowerShell」
2. 切換到項目目錄:
cd "您的項目路徑\data_transform"
3. 安裝依賴包(首次使用):
pip install -r requirements.txt
4. 啟動網頁伺服器:
python app.py
5. 打開瀏覽器訪問http://localhost:12001
## 方法二:使用虛擬環境(推薦)
1. 創建虛擬環境:
python -m venv venv
2. 啟動虛擬環境:
venv\Scripts\activate
3. 安裝依賴包:
pip install -r requirements.txt
4. 啟動應用:
python app.py
5. 訪問http://localhost:12001
## 網路訪問
如果要在區域網路中讓其他電腦訪問,應用會自動綁定到 0.0.0.0:12001
您可以使用本機IP地址訪問例如http://192.168.1.100:12001
## 注意事項
- 確保防火牆允許12001端口
- 生產環境建議使用WSGI服務器如Gunicorn
- 處理大檔案時請耐心等待