🎨 The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328

This commit is contained in:
Daniel 2023-10-02 22:15:33 +08:00
parent d2356754dd
commit 279e17e8b5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 10 additions and 3 deletions

View file

@ -81,6 +81,11 @@ func Boot() {
Container = ContainerStd
if isRunningInDockerContainer() {
Container = ContainerDocker
if "" == AccessAuthCode {
// The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328
fmt.Printf("The access authorization code command line parameter (--accessAuthCode) must be set when deploying via Docker.")
os.Exit(1)
}
}
if ContainerStd != Container {
ServerPort = FixedPort