genbox 1.0.94 → 1.0.95
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/dist/commands/create.js +4 -4
- package/dist/commands/init.js +6 -1
- package/package.json +1 -1
package/dist/commands/create.js
CHANGED
|
@@ -54,10 +54,10 @@ const db_utils_1 = require("../db-utils");
|
|
|
54
54
|
const utils_1 = require("../utils");
|
|
55
55
|
// Credits consumed per hour for each size (matches API billing.config.ts)
|
|
56
56
|
const CREDITS_PER_HOUR = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
cx23: 1,
|
|
58
|
+
cx33: 2,
|
|
59
|
+
cx43: 4,
|
|
60
|
+
cx53: 8,
|
|
61
61
|
small: 1,
|
|
62
62
|
medium: 2,
|
|
63
63
|
large: 4,
|
package/dist/commands/init.js
CHANGED
|
@@ -1339,11 +1339,16 @@ function generateConfig(detected, settings, repos, environments, profiles) {
|
|
|
1339
1339
|
const provides = {};
|
|
1340
1340
|
if (detected.infrastructure) {
|
|
1341
1341
|
for (const infra of detected.infrastructure) {
|
|
1342
|
-
|
|
1342
|
+
const providerConfig = {
|
|
1343
1343
|
type: infra.type,
|
|
1344
1344
|
image: infra.image,
|
|
1345
1345
|
port: infra.port,
|
|
1346
1346
|
};
|
|
1347
|
+
// Include replicaSet for MongoDB if detected
|
|
1348
|
+
if (infra.replicaSet) {
|
|
1349
|
+
providerConfig.replicaSet = infra.replicaSet;
|
|
1350
|
+
}
|
|
1351
|
+
provides[infra.name] = providerConfig;
|
|
1347
1352
|
}
|
|
1348
1353
|
}
|
|
1349
1354
|
// Build defaults
|