@cruxgarden/cli 0.0.4 → 0.0.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.
- package/README.md +2 -6
- package/bin/crux.js +4 -4
- package/docker/docker-compose.nursery.yml +2 -1
- package/lib/commands.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img src=".github/banner.jpg" alt="Crux Garden - Where Ideas Grow" width="100%">
|
|
3
|
-
<p>
|
|
4
|
-
<a href="https://github.com/CruxGarden/cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
|
|
5
|
-
<a href="https://github.com/CruxGarden/cli/issues"><img src="https://img.shields.io/github/issues/CruxGarden/cli" alt="Issues"></a>
|
|
6
|
-
<a href="https://github.com/CruxGarden/cli/stargazers"><img src="https://img.shields.io/github/stars/CruxGarden/cli" alt="Stars"></a>
|
|
7
|
-
</p>
|
|
8
3
|
</div>
|
|
9
4
|
|
|
10
5
|
The Crux Garden CLI tool helps manage the Crux Garden Nursery environment with Docker.
|
|
@@ -238,7 +233,8 @@ JWT_SECRET=your-super-secret-jwt-key-min-32-chars
|
|
|
238
233
|
AWS_ACCESS_KEY_ID=your-key
|
|
239
234
|
AWS_SECRET_ACCESS_KEY=your-secret
|
|
240
235
|
AWS_REGION=us-east-1
|
|
241
|
-
|
|
236
|
+
AWS_SES_FROM_EMAIL=demo@example.com
|
|
237
|
+
AWS_S3_ATTACHMENTS_BUCKET=crux-garden-attachments
|
|
242
238
|
|
|
243
239
|
# Optional overrides
|
|
244
240
|
CORS_ORIGIN=*
|
package/bin/crux.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
logsNursery,
|
|
13
13
|
cleanNursery,
|
|
14
14
|
purgeNursery,
|
|
15
|
-
|
|
15
|
+
updateNursery,
|
|
16
16
|
resetNursery,
|
|
17
17
|
connectNurseryDb,
|
|
18
18
|
connectNurseryRedis,
|
|
@@ -80,9 +80,9 @@ nursery
|
|
|
80
80
|
.action(purgeNursery);
|
|
81
81
|
|
|
82
82
|
nursery
|
|
83
|
-
.command("
|
|
84
|
-
.description("
|
|
85
|
-
.action(
|
|
83
|
+
.command("update")
|
|
84
|
+
.description("Download the latest API image from ghcr.io")
|
|
85
|
+
.action(updateNursery);
|
|
86
86
|
|
|
87
87
|
nursery
|
|
88
88
|
.command("reset")
|
|
@@ -82,7 +82,8 @@ services:
|
|
|
82
82
|
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-dummy}
|
|
83
83
|
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-dummy}
|
|
84
84
|
AWS_REGION: ${AWS_REGION:-us-east-1}
|
|
85
|
-
|
|
85
|
+
AWS_SES_FROM_EMAIL: ${AWS_SES_FROM_EMAIL:-noreply@example.com}
|
|
86
|
+
AWS_S3_ATTACHMENTS_BUCKET: ${AWS_S3_ATTACHMENTS_BUCKET:-crux-garden-attachments}
|
|
86
87
|
|
|
87
88
|
# Optional Configuration
|
|
88
89
|
CORS_ORIGIN: ${CORS_ORIGIN:-*}
|
package/lib/commands.js
CHANGED
|
@@ -315,16 +315,16 @@ export async function purgeNursery() {
|
|
|
315
315
|
console.log();
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
export async function
|
|
318
|
+
export async function updateNursery() {
|
|
319
319
|
const spinner = ora(
|
|
320
|
-
"
|
|
320
|
+
"Downloading latest Crux Garden API image from ghcr.io...",
|
|
321
321
|
).start();
|
|
322
322
|
|
|
323
323
|
await runCommandAsync("docker-compose -f docker-compose.nursery.yml pull", {
|
|
324
324
|
silent: true,
|
|
325
325
|
});
|
|
326
326
|
|
|
327
|
-
spinner.succeed("Latest nursery image
|
|
327
|
+
spinner.succeed("Latest nursery image downloaded!");
|
|
328
328
|
console.log(
|
|
329
329
|
chalk.gray("Run"),
|
|
330
330
|
chalk.cyan("crux nursery restart"),
|