Skip to content

Part H. The cutover: pointing the loaders at the new address

Check How you know
Adapter tests passed You saw the E.6 results and merged the pull requests.
Hub, research and tunnel healthy systemctl status shows active for all three; the tunnel is Healthy in Cloudflare.
Cloudflare rules in place D.4 to D.7 done; the ingestion rule enabled with the real paths.
Data imported and verified G.5 done with zero differences.
Owner sign-in works You signed in at app.bideward.com with the owner account and the authenticator.
A backup ran Part J’s first nightly dump exists, and the Drive copy arrived.
  1. Claude Code searches both repositories for the old address (grep for workers.dev) and lists every place. The known three are titan-loader-v18.0.js, titan-bootstrap.js and titan-tab.user.js; any other hit is shown to you before it is changed.
  2. Each hit changes from https://titan-stats.tyrol4all.workers.dev to https://api.bideward.com (the bots’ hostname, D.3). Nothing else in those files changes. The new address is shorter, so the bcgame bootstrap still fits the 10,000-character box.
  3. One pull request in crashgame, branch migrate-receiver-url, which you merge yourself. The script titan-v18.8.js is not touched.
  1. Bustabit first, one test bot: paste the new loader in its tab, approve it on the new dashboard, start a TEST bot. Watch the dashboard for 24 hours: cards update, round log fills, Telegram alerts arrive.
  2. Then Coinscrash (new loader paste, approval, TEST bot), then bcgame (new bootstrap paste, new tab userscript in Tampermonkey).
  3. Only then any LIVE bot. The one-live-bot-per-account rule and the bet gateway work as before.
  4. Each paste of a loader or bootstrap is a one-time manual step per tab; the dashboard cannot do it for you.

H.4 Optional soft cutover (only if you cannot re-paste everywhere quickly)

Section titled “H.4 Optional soft cutover (only if you cannot re-paste everywhere quickly)”

The old Worker can be turned into a plain forwarder to api.bideward.com so old pastes keep working for a while. Limits: the free plan allows 100,000 Worker requests a day, so this is a short bridge for a few bots only, not a place to stay; and it needs one small change deployed to the old Worker. Skip it unless a re-paste is truly hard; I will write it as a separate small step if you ask.

  1. Keep a terminal open on the server: sudo journalctl -u bideward-hub -f. Errors in red are to be copied to me, not ignored.
  2. Watch Cloudflare → Analytics for the hostname: requests rising, no spike of blocked requests from the WAF rules for your own bots.
  3. Run the Part I measurements.

← Previous: Part G. Move the data from the Worker to the new database · Guide index · Next: Part I. Validate with 1 to 3 bots and measure speed →