@inceptionstack/roundhouse 0.3.16 → 0.3.17
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/cli/setup.ts +16 -0
package/package.json
CHANGED
package/src/cli/setup.ts
CHANGED
|
@@ -232,6 +232,22 @@ async function stepPreflight(opts: SetupOptions): Promise<void> {
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
+
// Seed .env with commented-out example if it doesn't exist yet
|
|
236
|
+
if (!(await fileExists(ENV_PATH))) {
|
|
237
|
+
const seed = [
|
|
238
|
+
"# Roundhouse environment file",
|
|
239
|
+
"# Uncomment and set values, or use: roundhouse setup",
|
|
240
|
+
"#",
|
|
241
|
+
"# TELEGRAM_BOT_TOKEN=\"your-bot-token\"",
|
|
242
|
+
"# BOT_USERNAME=\"your_bot_username\"",
|
|
243
|
+
"# ALLOWED_USERS=\"your_telegram_username\"",
|
|
244
|
+
"# AWS_PROFILE=\"default\"",
|
|
245
|
+
"# AWS_REGION=\"us-east-1\"",
|
|
246
|
+
"",
|
|
247
|
+
].join("\n");
|
|
248
|
+
await writeFile(ENV_PATH, seed, { mode: 0o600 });
|
|
249
|
+
}
|
|
250
|
+
|
|
235
251
|
// Disk space (rough check)
|
|
236
252
|
try {
|
|
237
253
|
const dfOut = execSafe("df", ["-BG", "--output=avail", homedir()], { silent: true });
|