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.
| e6f7b90 | 1 | # Do this now (gluecron live + admin) |
| 2 | ||
| 3 | One page. Five steps. Copy-paste in order. | |
| 4 | ||
| 5 | ## 1. SSH to the metal box | |
| 6 | ||
| 7 | ```sh | |
| 8 | ssh root@45.76.171.37 | |
| 9 | ``` | |
| 10 | ||
| 11 | If SSH key-only is enabled and your key isn't loaded, use Vultr's vSerial | |
| 12 | console from the dashboard — it accepts the root password from server | |
| 13 | Overview → "Show Password". | |
| 14 | ||
| 15 | ## 2. Clone + configure (first-time only) | |
| 16 | ||
| 17 | ```sh | |
| 18 | git clone https://github.com/ccantynz-alt/Gluecron.com.git /opt/gluecron | |
| 19 | cd /opt/gluecron | |
| 20 | git checkout claude/new-session-xk1l7 # the deploy + admin scripts live here | |
| 21 | cp .env.example .env | |
| 22 | vim .env # set DATABASE_URL at minimum (Neon connection string) | |
| 23 | ``` | |
| 24 | ||
| 25 | Redeploy on later visits: | |
| 26 | ||
| 27 | ```sh | |
| 28 | cd /opt/gluecron && git pull && docker compose up -d --build | |
| 29 | ``` | |
| 30 | ||
| 31 | ## 3. Bring up the stack | |
| 32 | ||
| 33 | ```sh | |
| 34 | docker compose up -d --build | |
| 35 | docker compose logs -f caddy # ctrl-c once you see "certificate obtained" | |
| 36 | ``` | |
| 37 | ||
| 38 | Then run migrations: | |
| 39 | ||
| 40 | ```sh | |
| 41 | docker 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 | |
| 53 | docker compose exec gluecron bun run scripts/check-admin.ts you@example.com | |
| 54 | ``` | |
| 55 | ||
| 56 | If it says "NOT admin": | |
| 57 | ||
| 58 | ```sh | |
| 59 | docker compose exec gluecron bun run scripts/promote-admin.ts you@example.com | |
| 60 | ``` | |
| 61 | ||
| 62 | Log out, log back in, visit https://gluecron.com/admin — should render. | |
| 63 | ||
| 64 | ## 6. Verify (optional but quick) | |
| 65 | ||
| 66 | ```sh | |
| 67 | bash scripts/verify-deploy.sh https://gluecron.com | |
| 68 | ``` | |
| 69 | ||
| 70 | All 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 | |
| 77 | Cloudflare 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`. | |
| 82 | Most 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 | |
| 88 | directory 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/...`. |