修复预览控制台子路径静态资源
让控制服务原生托管 /build 页面与静态资源 保持内网 Nginx 路径透传并补充部署合同检查
This commit is contained in:
@@ -21,6 +21,10 @@ const systemd = readFileSync(
|
||||
'deploy/systemd/genarrative-preview-deployer.service',
|
||||
'utf8',
|
||||
);
|
||||
const server = readFileSync(
|
||||
'server-rs/crates/preview-deployer-server/src/lib.rs',
|
||||
'utf8',
|
||||
);
|
||||
const nginx = readFileSync(
|
||||
'deploy/nginx/genarrative-preview-deployer-lan.conf',
|
||||
'utf8',
|
||||
@@ -118,6 +122,11 @@ assertIncludes(
|
||||
'location ^~ /build/',
|
||||
'内网 Nginx 必须提供 /build/ 路由。',
|
||||
);
|
||||
assertIncludes(
|
||||
server,
|
||||
'.nest_service("/build/assets", ServeDir::new(static_dir.join("assets")))',
|
||||
'控制服务必须原生托管 /build 子路径,不能依赖 Nginx 隐式改写。',
|
||||
);
|
||||
assertIncludes(
|
||||
jobConfig,
|
||||
'<scriptPath>jenkins/Jenkinsfile.preview-deployer</scriptPath>',
|
||||
|
||||
Reference in New Issue
Block a user