mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
🔥 移除 --resident 和 --servePath 内核参数 Fix https://github.com/siyuan-note/siyuan/issues/6389
This commit is contained in:
parent
4559b03488
commit
3bd6c3fb20
6 changed files with 1 additions and 38 deletions
|
|
@ -47,7 +47,6 @@ func logBootInfo() {
|
|||
logging.LogInfof("kernel is booting:\n"+
|
||||
" * ver [%s]\n"+
|
||||
" * arch [%s]\n"+
|
||||
" * resident [%v]\n"+
|
||||
" * pid [%d]\n"+
|
||||
" * runtime mode [%s]\n"+
|
||||
" * working directory [%s]\n"+
|
||||
|
|
@ -55,7 +54,7 @@ func logBootInfo() {
|
|||
" * container [%s]\n"+
|
||||
" * database [ver=%s]\n"+
|
||||
" * workspace directory [%s, data %s]",
|
||||
Ver, runtime.GOARCH, Resident, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir, dataDirSize)
|
||||
Ver, runtime.GOARCH, os.Getpid(), Mode, WorkingDir, ReadOnly, Container, DatabaseVer, WorkspaceDir, dataDirSize)
|
||||
}
|
||||
|
||||
func IsMutexLocked(m *sync.Mutex) bool {
|
||||
|
|
|
|||
|
|
@ -58,10 +58,7 @@ func Boot() {
|
|||
|
||||
workspacePath := flag.String("workspace", "", "dir path of the workspace, default to ~/Documents/SiYuan/")
|
||||
wdPath := flag.String("wd", WorkingDir, "working directory of SiYuan")
|
||||
servePath := flag.String("servePath", "", "obsoleted https://github.com/siyuan-note/siyuan/issues/4647")
|
||||
_ = servePath
|
||||
port := flag.String("port", "0", "port of the HTTP server")
|
||||
resident := flag.String("resident", "true", "resident memory even if no active session")
|
||||
readOnly := flag.String("readonly", "false", "read-only mode")
|
||||
accessAuthCode := flag.String("accessAuthCode", "", "access auth code")
|
||||
ssl := flag.Bool("ssl", false, "for https and wss")
|
||||
|
|
@ -76,7 +73,6 @@ func Boot() {
|
|||
Lang = *lang
|
||||
}
|
||||
Mode = *mode
|
||||
Resident, _ = strconv.ParseBool(*resident)
|
||||
ServerPort = *port
|
||||
ReadOnly, _ = strconv.ParseBool(*readOnly)
|
||||
AccessAuthCode = *accessAuthCode
|
||||
|
|
@ -280,7 +276,6 @@ func initWorkspaceDir(workspaceArg string) {
|
|||
|
||||
var (
|
||||
ServerPort = "0" // HTTP/WebSocket 端口,0 为使用随机端口
|
||||
Resident bool
|
||||
ReadOnly bool
|
||||
AccessAuthCode string
|
||||
Lang = ""
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ func BootMobile(container, appDir, workspaceDir, nativeLibDir, privateDataDir, l
|
|||
ThemesPath = filepath.Join(AppearancePath, "themes")
|
||||
IconsPath = filepath.Join(AppearancePath, "icons")
|
||||
SnippetsPath = filepath.Join(DataDir, "snippets")
|
||||
Resident = true
|
||||
ServerPort = FixedPort
|
||||
Container = container
|
||||
UserAgent = UserAgent + " " + Container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue