Skip to content

Commit 93fa7c8

Browse files
committed
chore: rename make up:email-job → make up:compute
Renames scripts/email-job-{up,down}.sh → scripts/compute-{up,down}.sh and updates all references in Makefile, www UI, status.sh, up.sh. The command starts the full compute-service (inline + HTTP nodes) plus mailpit, not just email — the new name reflects that.
1 parent 6606d26 commit 93fa7c8

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: install build clean lint generate register register\:apply \
22
up down kill status verify-platform check-env setup-platform \
3-
up\:email-job down\:email-job \
3+
up\:compute down\:compute \
44
up\:www \
55
generate\:schemas generate\:sdk generate\:cli generate\:hooks generate\:sdk-all \
66
dev dev-fn dev-compute dev-down dev-logs setup-dev setup-check \
@@ -38,8 +38,8 @@ register\:apply:
3838
#
3939
# make up # postgres + deploy infra + seed + verify
4040
# make up DB_NAME=mydb # same, custom DB name
41-
# make up:email-job # add mailpit + compute-service (SMTP mode)
42-
# make down:email-job # stop mailpit + compute-service
41+
# make up:compute # add mailpit + compute-service
42+
# make down:compute # stop mailpit + compute-service
4343
# make down # stop everything (postgres, compose, etc.)
4444
# make kill # make down + drop all constructive-functions databases
4545
# DROP=1 make down DB_NAME=mydb # also drop the database
@@ -80,11 +80,11 @@ generate\:hooks:
8080
generate\:sdk-all:
8181
pnpm run generate:sdk-all
8282

83-
up\:email-job:
84-
./scripts/email-job-up.sh $(DB_NAME)
83+
up\:compute:
84+
./scripts/compute-up.sh $(DB_NAME)
8585

86-
down\:email-job:
87-
./scripts/email-job-down.sh
86+
down\:compute:
87+
./scripts/compute-down.sh
8888

8989
up\:www:
9090
./scripts/www-up.sh $(DB_NAME)
@@ -97,7 +97,7 @@ up\:www:
9797
#
9898
# Quick start:
9999
# make up # full setup
100-
# make up:email-job # start mailpit + compute-service
100+
# make up:compute # start mailpit + compute-service
101101

102102
setup-platform:
103103
./scripts/setup-platform-db.sh
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# email-job-down.sh — Stop mailpit and any running compute-service processes.
3+
# compute-down.sh — Stop mailpit and any running compute-service processes.
44
#
55
# Usage:
6-
# make down:email-job
6+
# make down:compute
77

88
set -euo pipefail
99

@@ -18,7 +18,7 @@ ok() { echo -e " ${GREEN}✓${NC} $1"; }
1818

1919
echo ""
2020
echo -e "${BOLD}════════════════════════════════════════════════════════════${NC}"
21-
echo -e "${BOLD} Email Job Down${NC}"
21+
echo -e "${BOLD} Compute Down${NC}"
2222
echo -e "${BOLD}════════════════════════════════════════════════════════════${NC}"
2323
echo ""
2424

@@ -32,6 +32,6 @@ pkill -f "dev-compute.ts" 2>/dev/null && ok "Compute-service stopped" || ok "Com
3232
pkill -f "compute-service/dist/run.js" 2>/dev/null || true
3333

3434
echo ""
35-
echo -e "${GREEN}${BOLD} Email Job is down.${NC}"
35+
echo -e "${GREEN}${BOLD} Compute is down.${NC}"
3636
echo " PostgreSQL is still running. Use 'make down' to stop everything."
3737
echo ""
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env bash
22
#
3-
# email-job-up.sh — Start mailpit + compute-service for local email testing.
3+
# compute-up.sh — Start mailpit + compute-service for local development.
44
#
55
# Requires the platform to be up first (make up).
66
# Starts mailpit (SMTP on :1025, web UI on :8025) then launches
77
# the compute-service + functions with SMTP mode enabled.
88
#
99
# Usage:
10-
# make up:email-job # default DB
11-
# make up:email-job DB_NAME=db8 # custom DB
10+
# make up:compute # default DB
11+
# make up:compute DB_NAME=db8 # custom DB
1212

1313
set -euo pipefail
1414

@@ -32,7 +32,7 @@ TOTAL_STEPS=5
3232

3333
echo ""
3434
echo -e "${BOLD}════════════════════════════════════════════════════════════${NC}"
35-
echo -e "${BOLD} Email Job Up — $DB_NAME${NC}"
35+
echo -e "${BOLD} Compute Up — $DB_NAME${NC}"
3636
echo -e "${BOLD}════════════════════════════════════════════════════════════${NC}"
3737

3838
# ─── Step 1: Verify platform is up ──────────────────────────────────────────
@@ -202,7 +202,7 @@ step 5 "Starting compute-service + functions"
202202

203203
echo ""
204204
echo -e "${BOLD}════════════════════════════════════════════════════════════${NC}"
205-
echo -e "${GREEN}${BOLD} Email Job is up${NC}"
205+
echo -e "${GREEN}${BOLD} Compute is up${NC}"
206206
echo ""
207207
echo " Mailpit UI: http://localhost:8025"
208208
echo " Database: $DB_NAME"

scripts/status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if command -v docker &>/dev/null; then
4444
if [ -n "$MAILPIT_UP" ]; then
4545
ok "Mailpit running ($MAILPIT_UP) — SMTP :1025, UI http://localhost:8025"
4646
else
47-
warn "Mailpit not running (start with: make up:email-job)"
47+
warn "Mailpit not running (start with: make up:compute)"
4848
fi
4949
else
5050
fail "Docker not available"

scripts/up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ if [ -f "$ROOT_DIR/.graphql-server.pid" ]; then
295295
fi
296296
echo ""
297297
echo -e " ${BOLD}Next:${NC}"
298-
echo " make up:email-job # start mailpit + compute-service"
298+
echo " make up:compute # start mailpit + compute-service"
299299
echo " make dev-compute # start compute-service only"
300300
echo " make status # show environment state"
301301
echo -e "${BOLD}════════════════════════════════════════════════════════════${NC}"

www/server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ app.post('/api/run', (req, res) => {
571571
'make verify-platform',
572572
'make up',
573573
'make down',
574-
'make up:email-job',
575-
'make down:email-job',
574+
'make up:compute',
575+
'make down:compute',
576576
'make check-env',
577577
];
578578

www/src/components/CommandBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const COMMANDS = [
88
{ label: 'Check Env', command: 'make check-env' },
99
{ label: 'Up', command: 'make up' },
1010
{ label: 'Down', command: 'make down' },
11-
{ label: 'Email Job Up', command: 'make up:email-job' },
12-
{ label: 'Email Job Down', command: 'make down:email-job' },
11+
{ label: 'Compute Up', command: 'make up:compute' },
12+
{ label: 'Compute Down', command: 'make down:compute' },
1313
];
1414

1515
const ANSI_COLORS: Record<string, string> = {

0 commit comments

Comments
 (0)