mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 02:39:19 +08:00
refactor: 适配 apps/web·server·license-server 目录的部署与插件路径
This commit is contained in:
+7
-11
@@ -93,7 +93,7 @@ export function getConfigPath(): string {
|
||||
return CONFIG_PATH;
|
||||
}
|
||||
|
||||
/** 本地编译产物根目录 ecom-deploy/artifacts */
|
||||
/** 本地编译产物根目录 deploy/artifacts */
|
||||
export function getArtifactsRoot(): string {
|
||||
return ARTIFACTS_ROOT;
|
||||
}
|
||||
@@ -213,29 +213,25 @@ export async function syncServerKeyAuth(
|
||||
const PROJECT_ROOT = join(__dirname, '..', '..');
|
||||
|
||||
export function getFrontendDir(): string {
|
||||
return join(PROJECT_ROOT, 'ecom-dmb-frontend');
|
||||
return join(PROJECT_ROOT, 'apps', 'web');
|
||||
}
|
||||
|
||||
export function getBackendDir(): string {
|
||||
return join(PROJECT_ROOT, 'ecom-dmb-backend');
|
||||
return join(PROJECT_ROOT, 'apps', 'server');
|
||||
}
|
||||
|
||||
export function getLicenseDir(): string {
|
||||
return join(PROJECT_ROOT, 'ecom-license');
|
||||
}
|
||||
|
||||
function getProjectDeployDir(project: string): string {
|
||||
return join(PROJECT_ROOT, project, 'deploy');
|
||||
return join(PROJECT_ROOT, 'apps', 'license-server');
|
||||
}
|
||||
|
||||
export function getFrontendDeployDir(): string {
|
||||
return getProjectDeployDir('ecom-dmb-frontend');
|
||||
return join(PROJECT_ROOT, 'apps', 'web', 'deploy');
|
||||
}
|
||||
|
||||
export function getBackendDeployDir(): string {
|
||||
return getProjectDeployDir('ecom-dmb-backend');
|
||||
return join(PROJECT_ROOT, 'apps', 'server', 'deploy');
|
||||
}
|
||||
|
||||
export function getLicenseDeployDir(): string {
|
||||
return getProjectDeployDir('ecom-license');
|
||||
return join(PROJECT_ROOT, 'apps', 'license-server', 'deploy');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user