openkbs 0.0.78 → 0.0.79
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/actions.js +8 -3
- package/version.json +3 -3
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -519,14 +519,18 @@ async function createByTemplateAction(name) {
|
|
|
519
519
|
try {
|
|
520
520
|
// Download templates from S3 first
|
|
521
521
|
await downloadTemplates();
|
|
522
|
-
|
|
522
|
+
|
|
523
523
|
const targetDir = path.join(process.cwd(), name);
|
|
524
524
|
|
|
525
525
|
if (fs.existsSync(targetDir)) {
|
|
526
526
|
console.error(`Error: Directory ${name} already exists.`);
|
|
527
527
|
process.exit(1);
|
|
528
528
|
}
|
|
529
|
-
|
|
529
|
+
|
|
530
|
+
// Copy template but exclude 'platform' folder (that's only for stack create)
|
|
531
|
+
fs.copySync(TEMPLATE_DIR, targetDir, {
|
|
532
|
+
filter: (src) => !src.includes('/platform')
|
|
533
|
+
});
|
|
530
534
|
replacePlaceholderInFiles(targetDir, name);
|
|
531
535
|
|
|
532
536
|
console.log(`Application ${name} created successfully.`);
|
|
@@ -2359,7 +2363,8 @@ async function elasticDeployAction() {
|
|
|
2359
2363
|
token: kbToken,
|
|
2360
2364
|
action: 'deployElastic',
|
|
2361
2365
|
elastic: config.elastic || {},
|
|
2362
|
-
spa: config.spa
|
|
2366
|
+
spa: config.spa,
|
|
2367
|
+
region
|
|
2363
2368
|
});
|
|
2364
2369
|
|
|
2365
2370
|
if (elasticRes.error) {
|
package/version.json
CHANGED