WMS_MAIN/_diag6.cjs
liufumingren 478ad2ab0d 1
2026-07-03 16:10:46 +08:00

19 lines
813 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
const { loadDeployConfig, quoteForBash, runSsh } = require('./script/deploy-lib.cjs');
const config = loadDeployConfig('production');
const script = [
'echo \"=== v2 完整 Model 配置(行70-100)===\"',
'sed -n \"70,100p\" ' + quoteForBash(config.deployRoot + '/v2/app/model/inbound_direct_log.js'),
'echo \"\"',
'echo \"=== v2 完整 Model 配置(行95-120)===\"',
'sed -n \"95,120p\" ' + quoteForBash(config.deployRoot + '/v2/app/model/inbound_direct_log.js'),
'echo \"\"',
'echo \"=== current.md 指向 ===\"',
'cat ' + quoteForBash(config.deployRoot + '/current.md'),
'echo \"\"',
'echo \"=== nginx upstream 指向 ===\"',
'cat ' + quoteForBash(config.deployRoot + '/nginx-upstream.conf'),
].join('\n');
console.log(runSsh(config, script, { stdio: 'pipe' }));