From b175b244e590ffd412e42fa183c9237a920f25da Mon Sep 17 00:00:00 2001 From: DrummingBird1 Date: Wed, 2 Sep 2026 14:50:26 +0300 Subject: [PATCH] docs: README pointed at a Fly.io deploy that has never actually worked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every run of .github/workflows/deploy.yml has failed since it was added — FLY_API_TOKEN was never set as a GitHub secret, so flyctl deploy fails immediately with "no access token available". red-alert.fly.dev doesn't even resolve. Meanwhile the app has been live and auto-deploying on Vercel via its GitHub integration the whole time (undocumented — no vercel.json, just an Import Project connection), which is where real users actually reach it. Added a live-demo link, documented Vercel as what's actually running today, and relabeled the Fly.io section as prepared-but-not-connected rather than implying it's the live pipeline. Left the setup instructions intact since they're still valid for anyone who wants to finish connecting it. Co-Authored-By: Claude Sonnet 5 --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e12963e..96e0ea2 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ [![Buy Me a Coffee](https://img.shields.io/badge/Buy_Me_a_Coffee-Support-FFDD00?logo=buymeacoffee&logoColor=000)](https://buymeacoffee.com/MrIdan) [![Patreon](https://img.shields.io/badge/Patreon-Support-FF424D?logo=patreon&logoColor=white)](https://www.patreon.com/c/IdanLights) +**🌐 [גרסה חיה — red-alert-ten.vercel.app](https://red-alert-ten.vercel.app)** +

מסך ראשי של צפיר — מפת אזעקות בזמן אמת

@@ -266,9 +268,17 @@ docker-compose logs -f --- -## ☁️ פריסה ל-Fly.io (חינמי, אוטומטי מ-GitHub) +## ☁️ פריסה + +### Vercel (בשימוש בפועל — זו הגרסה החיה למעלה) + +הריפו מחובר ל-Vercel דרך אינטגרציית ה-GitHub שלה (Import Project ב-[vercel.com/new](https://vercel.com/new), zero-config — Vercel מזהה `"framework":"node"` אוטומטית, אין `vercel.json` בריפו). כל `git push` ל-`main` פורס ל-production; כל branch/PR מקבל preview deployment נפרד עם URL משלו. אין setup נוסף מעבר לחיבור הראשוני של הריפו לפרויקט ב-Vercel dashboard. + +**שים לב**: השרת בנוי כתהליך ארוך-חיים אחד (`http.createServer` + `setInterval` polling כל 2s + store בזיכרון + חיבורי SSE ארוכים ב-`/api/stream`) — לא ארכיטקטורת serverless קלאסית. זה עובד היום (נבדק ישירות — 0 שגיאות runtime, האתר עונה כמצופה), אבל אם ייתקלו בבעיות ייחודיות ל-serverless (state שמתאפס בין invocations, timeouts על SSE ארוך) — זו הסיבה. + +### Fly.io (מוכן אך לא מחובר כרגע) -הריפו כולל [fly.toml](fly.toml) ו-[.github/workflows/deploy.yml](.github/workflows/deploy.yml) — כל `git push` ל-`main` יפרוס אוטומטית. +הריפו גם כולל [fly.toml](fly.toml) ו-[.github/workflows/deploy.yml](.github/workflows/deploy.yml) שמיועדים לפרוס אוטומטית ל-Fly.io בכל push ל-`main` — **אבל ה-workflow הזה כשל בכל ריצה עד כה** (`FLY_API_TOKEN` לא הוגדר מעולם כ-secret ב-GitHub, כך ש-`flyctl deploy` נכשל מיד עם "no access token available"). `https://red-alert.fly.dev` לא פנוי כרגע. ההוראות למטה עדיין תקפות אם תרצו להשלים את ה-setup בעצמכם (או כאלטרנטיבה/גיבוי ל-Vercel) — פשוט לא הושלמו. ### setup חד-פעמי (3 דקות) @@ -298,7 +308,7 @@ flyctl tokens create deploy -x 99999h git push origin main ``` -ה-workflow ירוץ ב-Actions tab, יבנה Docker image מ-`Dockerfile`, ידחוף ל-Fly, ויאמת `/api/health`. URL: `https://red-alert.fly.dev`. +אם כל 6 הצעדים הושלמו נכון, ה-workflow ירוץ ב-Actions tab, יבנה Docker image מ-`Dockerfile`, ידחוף ל-Fly, ויאמת `/api/health` — וה-URL (`https://red-alert-.fly.dev`, לפי השם שנבחר בצעד 2) יעלה. בדקו ב-Actions tab שהריצה באמת ירוקה — secret חסר/שגוי נכשל בשקט מבחינת המשתמש (ה-push עצמו מצליח, רק ה-deploy נכשל). ### למה Fly ולא Render/Railway/Heroku?