docs: add enterprise code channel offline install guide
This commit is contained in:
parent
5615453e4e
commit
31dc1cccb0
7 changed files with 144 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
APP_NAME = 光湖代码频道
|
||||
APP_SLOGAN = 光湖自有代码频道 · 第五域个人子频道
|
||||
RUN_USER = guanghu
|
||||
RUN_MODE = prod
|
||||
|
||||
|
|
@ -22,6 +23,11 @@ OFFLINE_MODE = true
|
|||
DISABLE_REGISTRATION = true
|
||||
REQUIRE_SIGNIN_VIEW = false
|
||||
|
||||
[ui.meta]
|
||||
AUTHOR = 光湖代码频道
|
||||
DESCRIPTION = 光湖自有代码频道 · 第五域个人子频道
|
||||
KEYWORDS = 光湖,代码频道,第五域,HoloLake
|
||||
|
||||
[security]
|
||||
INSTALL_LOCK = true
|
||||
|
||||
|
|
@ -32,7 +38,7 @@ ENABLED = false
|
|||
ENABLED = false
|
||||
|
||||
[other]
|
||||
SHOW_FOOTER_BRANDING = false
|
||||
SHOW_FOOTER_POWERED_BY = false
|
||||
SHOW_FOOTER_VERSION = false
|
||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
{{template "base/head" .}}
|
||||
<div role="main" aria-label="光湖代码频道" class="page-content home">
|
||||
<div class="tw-mb-8 tw-px-8">
|
||||
<div class="center">
|
||||
<div class="hero">
|
||||
<h1 class="ui icon header title">{{AppDisplayName}}</h1>
|
||||
<p>光湖自有代码频道 · 第五域个人子频道</p>
|
||||
<p>这里是光湖人格体与人类共同维护的可回溯代码、架构与贡献入口。</p>
|
||||
<p>
|
||||
<a class="ui primary button" href="{{AppSubUrl}}/bingshuo/fifth-domain">进入第五域代码频道</a>
|
||||
<a class="ui button" href="{{AppSubUrl}}/explore/repos">浏览公开代码</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
|
|
@ -488,6 +488,10 @@ def bootstrap() -> None:
|
|||
config_target = STATE_ROOT / "config" / "app.ini"
|
||||
shutil.copyfile(config_source, config_target)
|
||||
config_target.chmod(0o600)
|
||||
custom_source = pathlib.Path(__file__).with_name("custom")
|
||||
custom_target = STATE_ROOT / "data" / "custom"
|
||||
if custom_source.is_dir():
|
||||
shutil.copytree(custom_source, custom_target, dirs_exist_ok=True)
|
||||
set_status(stage="launching")
|
||||
log_path = STATE_ROOT / "logs" / "hlcc.log"
|
||||
log_handle = log_path.open("ab", buffering=0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue