create-asaje-go-vue 0.3.3 → 0.3.4
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/bin/create-asaje-go-vue.js +15 -3
- package/package.json +1 -1
|
@@ -3311,9 +3311,9 @@ async function wireRailwayVariables(config) {
|
|
|
3311
3311
|
|
|
3312
3312
|
async function loadRailwayLocalEnvDefaults(projectDir) {
|
|
3313
3313
|
const [apiEnv, realtimeEnv, adminEnv] = await Promise.all([
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3314
|
+
loadServiceEnvDefaults(projectDir, "api"),
|
|
3315
|
+
loadServiceEnvDefaults(projectDir, "realtime-gateway"),
|
|
3316
|
+
loadServiceEnvDefaults(projectDir, "admin"),
|
|
3317
3317
|
]);
|
|
3318
3318
|
|
|
3319
3319
|
return {
|
|
@@ -3323,6 +3323,18 @@ async function loadRailwayLocalEnvDefaults(projectDir) {
|
|
|
3323
3323
|
};
|
|
3324
3324
|
}
|
|
3325
3325
|
|
|
3326
|
+
async function loadServiceEnvDefaults(projectDir, serviceDir) {
|
|
3327
|
+
const [exampleEnv, localEnv] = await Promise.all([
|
|
3328
|
+
tryReadEnvFile(path.join(projectDir, serviceDir, ".env.example")),
|
|
3329
|
+
tryReadEnvFile(path.join(projectDir, serviceDir, ".env")),
|
|
3330
|
+
]);
|
|
3331
|
+
|
|
3332
|
+
return {
|
|
3333
|
+
...exampleEnv,
|
|
3334
|
+
...localEnv,
|
|
3335
|
+
};
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3326
3338
|
function buildRailwaySharedSecrets(localEnv, existingVariables) {
|
|
3327
3339
|
const jwtSecret =
|
|
3328
3340
|
sanitizeSecret(localEnv.api.JWT_SECRET, "change-me") ||
|