unoverse 0.1.53 → 0.1.55
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/operator/lib/deploy.sh +10 -3
- package/operator/lib/ground.sh +2 -8
- package/operator/operator.sh +8 -1
- package/package.json +1 -1
package/operator/lib/deploy.sh
CHANGED
|
@@ -42,9 +42,16 @@ cmd_deploy() {
|
|
|
42
42
|
exit 1
|
|
43
43
|
}
|
|
44
44
|
echo ""
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
ok "Your $cloud ground is prefilled ${DIM}(infra/$cloud/terraform.tfvars)${NC}"
|
|
46
|
+
echo ""
|
|
47
|
+
local step=1
|
|
48
|
+
if grep -q "FILL_ME" "$ROOT/infra/$cloud/terraform.tfvars" 2>/dev/null; then
|
|
49
|
+
info "$step. Fill in each FILL_ME value: ${BOLD}infra/$cloud/terraform.tfvars${NC}"
|
|
50
|
+
step=$((step+1))
|
|
51
|
+
fi
|
|
52
|
+
info "$step. ${BOLD}cd infra/$cloud && terraform init && terraform apply${NC} ${DIM}creates the server (billable)${NC}"
|
|
53
|
+
step=$((step+1))
|
|
54
|
+
info "$step. ${BOLD}cd ../.. && unoverse deploy${NC} ${DIM}ships the platform onto it${NC}"
|
|
48
55
|
echo ""
|
|
49
56
|
exit 0
|
|
50
57
|
fi
|
package/operator/lib/ground.sh
CHANGED
|
@@ -265,20 +265,14 @@ cmd_ground() {
|
|
|
265
265
|
[ -f "$ROOT/infra/digitalocean/terraform.tfvars" ] && { fail "infra/digitalocean/terraform.tfvars already exists. Edit it, or delete it to regenerate"; return 1; }
|
|
266
266
|
_ground_do || return 1
|
|
267
267
|
echo ""
|
|
268
|
-
|
|
269
|
-
info " cd infra/digitalocean && terraform init && terraform apply"
|
|
270
|
-
info " cd ../.. && unoverse deploy init # renders .env.production from the ground itself"
|
|
271
|
-
info " npx unoverse where # every deployed URL, probed live"
|
|
268
|
+
: # no closing narration here: deploy owns the next-steps (one voice)
|
|
272
269
|
;;
|
|
273
270
|
aws)
|
|
274
271
|
banner "Prefill your AWS ground"
|
|
275
272
|
[ -f "$ROOT/infra/aws/terraform.tfvars" ] && { fail "infra/aws/terraform.tfvars already exists. Edit it, or delete it to regenerate"; return 1; }
|
|
276
273
|
_ground_aws || return 1
|
|
277
274
|
echo ""
|
|
278
|
-
|
|
279
|
-
info " cd infra/aws && terraform init && terraform apply"
|
|
280
|
-
info " cd ../.. && unoverse deploy init # renders .env.production from the ground itself"
|
|
281
|
-
info " npx unoverse where # every deployed URL, probed live"
|
|
275
|
+
: # no closing narration here: deploy owns the next-steps (one voice)
|
|
282
276
|
;;
|
|
283
277
|
*)
|
|
284
278
|
fail "unknown ground: $which (use: do | aws)"
|
package/operator/operator.sh
CHANGED
|
@@ -74,7 +74,14 @@ case "${1:-}" in
|
|
|
74
74
|
info "Docker is not running. Images refresh on the next unoverse start"
|
|
75
75
|
else
|
|
76
76
|
info "Checking for newer platform images..."
|
|
77
|
-
docker compose -f "$ROOT/docker-compose.yml" --env-file "$ROOT/.env" pull
|
|
77
|
+
if ! docker compose -f "$ROOT/docker-compose.yml" --env-file "$ROOT/.env" pull; then
|
|
78
|
+
# A failed pull must not be followed by "everything is up to date". Timeouts
|
|
79
|
+
# here are almost always a network blip; the retry costs one command.
|
|
80
|
+
echo ""
|
|
81
|
+
warn "An image did not download (network blip, usually). Run ${BOLD}unoverse update${NC} again"
|
|
82
|
+
echo ""
|
|
83
|
+
exit 1
|
|
84
|
+
fi
|
|
78
85
|
if [ -n "$(docker compose -f "$ROOT/docker-compose.yml" ps -q 2>/dev/null)" ]; then
|
|
79
86
|
docker compose -f "$ROOT/docker-compose.yml" --env-file "$ROOT/.env" up -d --remove-orphans >/dev/null 2>&1 \
|
|
80
87
|
&& ok "Running services moved to the new images"
|
package/package.json
CHANGED