create-asaje-go-vue 0.2.4 → 0.2.6

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.
@@ -947,7 +947,19 @@ async function runSetupRailway(argv) {
947
947
 
948
948
  const rabbitMqResult = await ensureRailwayResource({
949
949
  aliases: ["rabbitmq"],
950
- commandArgs: ["deploy", "--template", "RabbitMQ"],
950
+ commandArgs: [
951
+ "add",
952
+ "--service",
953
+ "rabbitmq",
954
+ "--image",
955
+ "rabbitmq:4.1-management-alpine",
956
+ "--variables",
957
+ "RABBITMQ_DEFAULT_USER=app",
958
+ "--variables",
959
+ `RABBITMQ_DEFAULT_PASS=${randomSecret(18)}`,
960
+ "--variables",
961
+ `RABBITMQ_ERLANG_COOKIE=${randomSecret(24)}`,
962
+ ],
951
963
  dryRun: answers.dryRun,
952
964
  existingServices,
953
965
  key: "rabbitmq",
@@ -985,10 +997,11 @@ async function runSetupRailway(argv) {
985
997
  existingServices,
986
998
  key: spec.key,
987
999
  manifest,
988
- projectDir,
989
- railwayContext,
990
- serviceName: spec.serviceName,
991
- });
1000
+ projectDir,
1001
+ railwayContext,
1002
+ serviceName: spec.serviceName,
1003
+ seedImage: spec.key === "admin" ? "nginx:1.29-alpine" : "alpine:3.22",
1004
+ });
992
1005
  appServiceSummary.push(serviceResult);
993
1006
  }
994
1007
 
@@ -1485,7 +1498,13 @@ async function ensureRailwayAppService(config) {
1485
1498
  console.log(`- creating ${pc.cyan(config.serviceName)} service...`);
1486
1499
  const servicesBefore = normalizeRailwayServices(config.existingServices);
1487
1500
  if (!config.dryRun) {
1488
- await runRailwayCommand(config.projectDir, config.railwayContext.environmentRef, ["add", "--service", config.serviceName]);
1501
+ await runRailwayCommand(config.projectDir, config.railwayContext.environmentRef, [
1502
+ "add",
1503
+ "--service",
1504
+ config.serviceName,
1505
+ "--image",
1506
+ config.seedImage || "alpine:3.22",
1507
+ ]);
1489
1508
  }
1490
1509
 
1491
1510
  let createdService = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-asaje-go-vue",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "CLI to scaffold, configure, and run the Asaje Go + Vue boilerplate",
5
5
  "type": "module",
6
6
  "bin": {