mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
feat: 新增部署脚本
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
export type Environment = 'test' | 'pre' | 'production';
|
||||
export type Service = 'frontend' | 'backend' | 'license';
|
||||
|
||||
export interface ServerConfig {
|
||||
host: string;
|
||||
port: number;
|
||||
username: string;
|
||||
deployPath: string;
|
||||
authType: 'password' | 'key';
|
||||
keyPath?: string;
|
||||
lastPassword?: string;
|
||||
}
|
||||
|
||||
export interface ServiceEnvConfig {
|
||||
server: ServerConfig;
|
||||
port: number;
|
||||
springProfile?: string;
|
||||
nodeEnv?: string;
|
||||
dbUrl?: string;
|
||||
redisUrl?: string;
|
||||
licenseDbUrl?: string;
|
||||
extractDir?: string;
|
||||
}
|
||||
|
||||
export interface DeployConfig {
|
||||
currentEnv: Environment;
|
||||
services: Record<Service, Record<Environment, ServiceEnvConfig>>;
|
||||
}
|
||||
|
||||
export const SERVICE_LABELS: Record<Service, string> = {
|
||||
frontend: '前端',
|
||||
backend: '后端',
|
||||
license: '许可证服务',
|
||||
};
|
||||
|
||||
export const ENV_LABELS: Record<Environment, string> = {
|
||||
test: '测试环境',
|
||||
pre: '预发布环境',
|
||||
production: '生产环境',
|
||||
};
|
||||
Reference in New Issue
Block a user