Merge pull request #10 from Mimosa-X/main

Enhance deployment documentation for Windows and Linux/macOS
This commit is contained in:
yialdd 2026-07-06 23:00:46 +08:00 committed by GitHub
commit 4e18d31e16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View file

@ -77,11 +77,20 @@ docker compose -f deploy/docker-compose.yml up -d
Build and run the single server program:
Windows (PowerShell):
```powershell
go build -o bin/gramsrv.exe ./cmd/telesrv
.\bin\gramsrv.exe
```
Linux / macOS:
```bash
go build -o bin/gramsrv ./cmd/telesrv
./bin/gramsrv
```
On first start, `gramsrv` creates `data/server_rsa.pem`, applies database
migrations, seeds bundled language packs, prepares optional media resources,
starts MTProto on `0.0.0.0:2398`, and brings up the update/media/background

View file

@ -72,11 +72,20 @@ docker compose -f deploy/docker-compose.yml up -d
编译并启动唯一的 server 程序:
Windows (PowerShell)
```powershell
go build -o bin/gramsrv.exe ./cmd/telesrv
.\bin\gramsrv.exe
```
Linux / macOS
```bash
go build -o bin/gramsrv ./cmd/telesrv
./bin/gramsrv
```
第一次启动时,`gramsrv` 会创建 `data/server_rsa.pem`,自动执行数据库 migrations导入内置语言包准备可选媒体资源`0.0.0.0:2398` 监听 MTProto并在同一进程里启动 updates、media、后台调度等 worker。
常用本地环境变量: