ante-erp-cli 1.11.33 → 1.11.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/install.js +6 -10
- package/src/utils/config.js +9 -2
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -329,11 +329,11 @@ export async function install(options) {
|
|
|
329
329
|
facialWebPort,
|
|
330
330
|
posAppPort,
|
|
331
331
|
companyId: 1,
|
|
332
|
-
installGate:
|
|
333
|
-
installGuardian:
|
|
334
|
-
installFacial:
|
|
335
|
-
installPos:
|
|
336
|
-
frontends: ['main'
|
|
332
|
+
installGate: false, // Optional - not installed by default
|
|
333
|
+
installGuardian: false,
|
|
334
|
+
installFacial: false,
|
|
335
|
+
installPos: false,
|
|
336
|
+
frontends: ['main'] // Only main frontend by default
|
|
337
337
|
};
|
|
338
338
|
|
|
339
339
|
console.log(chalk.green(`✓ ${formatStepTitle(stepNetworkDetect, totalSteps, `Network detected: ${host}`)}\n`));
|
|
@@ -341,12 +341,8 @@ export async function install(options) {
|
|
|
341
341
|
// Display configuration summary (compact)
|
|
342
342
|
console.log(chalk.bold('📋 Installation Configuration:\n'));
|
|
343
343
|
console.log(chalk.cyan(' Directory:'), chalk.white(config.installDir));
|
|
344
|
-
console.log(chalk.cyan(' Preset:'), chalk.white('
|
|
344
|
+
console.log(chalk.cyan(' Preset:'), chalk.white('Standard (Main Frontend Only)'));
|
|
345
345
|
console.log(chalk.cyan(' Frontend Main:'), chalk.white(config.frontendDomain));
|
|
346
|
-
console.log(chalk.cyan(' Gate App:'), chalk.white(config.gateAppDomain));
|
|
347
|
-
console.log(chalk.cyan(' Guardian App:'), chalk.white(config.guardianAppDomain));
|
|
348
|
-
console.log(chalk.cyan(' Facial Web:'), chalk.white(config.facialAppDomain));
|
|
349
|
-
console.log(chalk.cyan(' POS App:'), chalk.white(config.posAppDomain));
|
|
350
346
|
console.log(chalk.cyan(' API:'), chalk.white(config.apiDomain));
|
|
351
347
|
console.log();
|
|
352
348
|
|
package/src/utils/config.js
CHANGED
|
@@ -24,13 +24,20 @@ export function detectInstallation(cwd = process.cwd()) {
|
|
|
24
24
|
existsSync(join(cwd, '.env'))) {
|
|
25
25
|
return cwd;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
// Check default subdirectory (./ante-erp)
|
|
29
|
+
const defaultSubdir = join(cwd, 'ante-erp');
|
|
30
|
+
if (existsSync(join(defaultSubdir, 'docker-compose.yml')) &&
|
|
31
|
+
existsSync(join(defaultSubdir, '.env'))) {
|
|
32
|
+
return defaultSubdir;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
// Check saved installation path
|
|
29
36
|
const savedPath = config.get('installPath');
|
|
30
37
|
if (savedPath && existsSync(join(savedPath, 'docker-compose.yml'))) {
|
|
31
38
|
return savedPath;
|
|
32
39
|
}
|
|
33
|
-
|
|
40
|
+
|
|
34
41
|
return null;
|
|
35
42
|
}
|
|
36
43
|
|