mindoc-org / mindoc-daemon

daemon for mindoc
MIT License
4 stars 2 forks source link

mindoc-daemon

daemon for mindoc

简体中文

build & run

# build
go build -o mindoc-daemon.exe main.go
# direct run mindoc
mindoc-daemon.exe
# mindoc-daemon service command
mindoc-daemon.exe -service <command>

available commands for mindoc-daemon service

configuration

the configuration file is mindoc-daemon.json, which must be in the same folder as the mindoc-daemon executable file, and the content is as follows:

{
    "Name": "MinDoc",
    "DisplayName": "MinDoc",
    "Description": "A document online management program.",

    "Dir": "E:\\own\\go\\mindoc",
    "Exec": "E:\\own\\go\\mindoc\\mindoc_windows_amd64.exe",
    "Args": [],
    "Env": [
        "MINDOC_RUN_MODE=dev",
        "MINDOC_HIGHLIGHT_STYLE=github"
    ],

    "Stderr": "",
    "Stdout": ""
}

the full configuration file example is mindoc-daemon-full.json.example.

explanation of main configuration items:

reference