部署 任何地方
推薦
在 Docker 中執行
首先安裝 Docker。然後在 Linux 終端機中執行以下指令:
image=aiursoft/marktohtml
appName=marktohtml
docker pull $image
docker run -d --name $appName --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data $image
系統會在 http://localhost:5000 啟動網頁伺服器,你可測試應用程式。
預設用戶名稱是: admin, 和預設密碼是: admin123.
容器環境
| 屬性 | 值 |
|---|---|
| 映像 | aiursoft/marktohtml |
| 埠口 | 5000 |
| 二進制路徑 | /app |
| 資料路徑 | /data |
| 設定路徑 | /data/appsettings.json |
在 Ubuntu 上執行
以下指令會在您的 Ubuntu 伺服器上安裝/更新此應用程式。支援 Ubuntu 25.04。
curl -sL https://github.com/aiursoftweb/markToHtml/raw/master/install.sh | sudo bash
或使用自訂埠:
... | sudo bash -s 8080
Systemd
/opt/apps
貢獻
開發及手動執行
先決條件
手動執行
- 在 `wwwroot` 資料夾內執行 `npm install`。
- 執行 `dotnet run` 以運行應用程式。
- 瀏覽 http://localhost:5000。
在 Visual Studio 中執行
- 開啟 `.sln` 檔案。
- 按 F5 鍵以執行應用程式。