Menu

What /up Cannot See: The Daily Health Check Behind My Laravel App, and the 3 Bugs It Had First
📰

What /up Cannot See: The Daily Health Check Behind My Laravel App, and the 3 Bugs It Had First

DEV Community: laravel·Hafiz·12 days ago
#aCgTNLdm
#devtolaravel#devto#dev#root#laravel
Long article (2152 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published at hafiz.dev

On 9 May, the queued jobs on hafiz.dev started failing and kept failing for the rest of the day. The newsletter send failed. The Dev.to cross-post failed. The homepage answered 200 the whole time, so anything watching it from the outside would have shown green. The cause was a duplicate schedule:run line I had added to root's crontab while checking the scheduler.

That's the gap between "the site is up" and "the app works". Laravel's /up route sits on the first side of it. So in October I wrote a daily check for the second side, called ops:health , that runs inside the app as the web user and sends a Telegram message only when something fails.

It had three bugs in its first week, all mine.

What /up actually checks

Every new Laravel 11+ app registers /up in bootstrap/app.php .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.