Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesPull RequestsActionsSecurityInsightsSettings
✨ AI
More
Blame · Line-by-line history

DO_THIS_NOW.md

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

DO_THIS_NOW.mdBlame90 lines · 1 contributor
e6f7b90CC LABS App1# Do this now (gluecron live + admin)
2
3One page. Five steps. Copy-paste in order.
4
5## 1. SSH to the metal box
6
7```sh
8ssh root@45.76.171.37
9```
10
11If SSH key-only is enabled and your key isn't loaded, use Vultr's vSerial
12console from the dashboard — it accepts the root password from server
13Overview → "Show Password".
14
15## 2. Clone + configure (first-time only)
16
17```sh
18git clone https://github.com/ccantynz-alt/Gluecron.com.git /opt/gluecron
19cd /opt/gluecron
20git checkout claude/new-session-xk1l7 # the deploy + admin scripts live here
21cp .env.example .env
22vim .env # set DATABASE_URL at minimum (Neon connection string)
23```
24
25Redeploy on later visits:
26
27```sh
28cd /opt/gluecron && git pull && docker compose up -d --build
29```
30
31## 3. Bring up the stack
32
33```sh
34docker compose up -d --build
35docker compose logs -f caddy # ctrl-c once you see "certificate obtained"
36```
37
38Then run migrations:
39
40```sh
41docker compose exec gluecron bun run db:migrate
42```
43
44## 4. Register your account
45
46- Open https://gluecron.com/register in a browser
47- Email + password. Use the same email you want to be admin under.
48- First registered user auto-promotes per bootstrap rule — but to be safe:
49
50## 5. Confirm + promote yourself to admin
51
52```sh
53docker compose exec gluecron bun run scripts/check-admin.ts you@example.com
54```
55
56If it says "NOT admin":
57
58```sh
59docker compose exec gluecron bun run scripts/promote-admin.ts you@example.com
60```
61
62Log out, log back in, visit https://gluecron.com/admin — should render.
63
64## 6. Verify (optional but quick)
65
66```sh
67bash scripts/verify-deploy.sh https://gluecron.com
68```
69
70All lines should show OK. If any FAIL, look at the line and debug just that.
71
72---
73
74## Troubleshooting
75
76**Caddy logs say "acme: error issuing certificate":** DNS is wrong or
77Cloudflare proxy is on. Check `dig +short gluecron.com` returns
78`45.76.171.37` and that the orange cloud is grey in Cloudflare.
79
80**`docker compose exec` says "service is not running":** check
81`docker compose ps`. If gluecron is restarting, `docker compose logs gluecron`.
82Most common cause: `DATABASE_URL` wrong or Neon project paused.
83
84**`/register` returns 500:** DB migrations probably weren't run. Re-run
85`docker compose exec gluecron bun run db:migrate`.
86
87**"Cannot find module 'src/db/client'":** the scripts assume the working
88directory is the repo root inside the container, which is the default for
89`docker compose exec`. If you're running them on the host, prefix with
90`bun --cwd /opt/gluecron run scripts/...`.