Add Railway deployment guide#52
Closed
irinanazarova wants to merge 3 commits intomasterfrom
Closed
Conversation
Covers deploying AnyCable-Go + Rails on Railway with: - HTTP broadcasting over private networking (no Redis) - JWT authentication for cross-domain WebSocket - Turbo Streams + importmap-rails setup with vendored JS - Presence indicator example - Railway CLI commands alongside dashboard instructions - Troubleshooting for common pitfalls (CSP, version pinning, signed stream verifier key load order, broadcast port)
Member
|
The only relevant bits are how to use railway cli to deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a deployment guide for Railway, covering the full path from Solid Cable to AnyCable-Go in production.
Based on real migrations of two Rails apps (Fizzy and Solaris) to AnyCable on Railway, with every pitfall we hit documented inline.
What's covered
<turbo-cable-presence-source>Pitfalls documented from real deployments
anycable/anycable-go:latestmay be too old for presence (pin to1.6)@anycable/turbo-streamvendored file needs patching for importmap-rails (named imports vs Turbo namespace — this should be fixed in the npm package)signed_stream_verifier_keymust be inafter_initializeANYCABLE_SECRETis setANYCABLE_URL(public, browser-facing) vsANYCABLE_HTTP_BROADCAST_URL(private,*.railway.internal)connect-srcdoesn't include the AnyCable-Go originNote on
@anycable/turbo-streamnpm packageThe package imports
{ connectStreamSource }from@hotwired/turboas a named export. This works with jsbundling (real npm package) but breaks with importmap-rails (turbo.min.jsfrom turbo-rails nests it underTurbo). This causes a silent SyntaxError that kills all JS on the page. The guide documents a manual patch, but the package itself should be fixed to handle both: