跳到正文

Windows 與 Linux 自架軟體商店部署

下載與你的伺服器匹配的安裝包

licentivo-launch_0.3.4-beta_source.zip · SHA256SUMS.txt · GitHub 原始碼

Windows 解壓 ZIP,Linux 解壓 tar.gz。進入包含 launch.exe 或 launch 的目錄,再執行下面的命令。

launch init:首次生成設定

init 在當前目錄建立 config.yaml,并生成需要長期儲存的 master_key。它不會啟動網站,也不會安裝 MySQL。已有設定時不要重復初始化。

Windows · PowerShell
Windows · PowerShell
.\launch.exe init
notepad config.yaml
Linux · Shell
Linux · Shell
./launch init
nano config.yaml

把 database_dsn 改為實際資料庫連線,并保留自動生成的 master_key:

config.yaml · database_dsn
launch:YOUR_DATABASE_PASSWORD@tcp(127.0.0.1:3306)/launch?parseTime=true&loc=UTC&charset=utf8mb4

launch serve:執行網站服務

serve 讀取當前目錄的 config.yaml,連線 MySQL、維護應用程式表并啟動商店與管理管理後台。它是前臺處理程序,終端關閉或按下 Ctrl+C 後服務會停止。

Windows · PowerShell
Windows · PowerShell
.\launch.exe serve
Linux · Shell
Linux · Shell
./launch serve

預設打開 http://localhost:18080/#/login。以後啟動只需在同一目錄執行 serve,不用再次執行 init中查看。

從源碼構建(僅開發者需要)

修改服務端程式碼時需要 Go 1.26+ 與 Git;普通部署跳過本節。

Shell
git clone https://github.com/spf86/licentivo-launch.git
cd licentivo-launch
go build -trimpath -o launch ./cmd/launch
./launch init
# Edit database_dsn in config.yaml and keep master_key.
./launch serve