mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 10:29:19 +08:00
feat: 调整部署脚本
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
composeDown,
|
||||
} from '../docker.js';
|
||||
import { assertArtifactsExist, ensureArtifactsDirs } from '../artifacts.js';
|
||||
import { getArtifactDir, loadConfig, getServiceConfig, syncServerKeyAuth } from '../config.js';
|
||||
import { getArtifactDir, loadConfig, getServiceConfig, syncServerKeyAuth, isStaticDeploy } from '../config.js';
|
||||
import { printError, printInfo, printSuccess } from '../ui/render.js';
|
||||
import type { Environment, Service, ServiceEnvConfig } from '../types.js';
|
||||
|
||||
@@ -114,7 +114,7 @@ export async function deployArtifactsOnly(
|
||||
);
|
||||
|
||||
try {
|
||||
if (cfg.extractDir) {
|
||||
if (isStaticDeploy(cfg)) {
|
||||
await deployService(conn, service, cfg, getArtifactDir(service), env);
|
||||
} else {
|
||||
await deployService(conn, service, cfg, getArtifactDir(service), env);
|
||||
@@ -146,7 +146,7 @@ export async function buildAndDeployServices(
|
||||
);
|
||||
|
||||
try {
|
||||
if (cfg.extractDir) {
|
||||
if (isStaticDeploy(cfg)) {
|
||||
await deployService(conn, service, cfg, getArtifactDir(service), env);
|
||||
} else {
|
||||
await deployService(conn, service, cfg, getArtifactDir(service), env);
|
||||
|
||||
Reference in New Issue
Block a user