-
Notifications
You must be signed in to change notification settings - Fork 124
feat(site): railway deploy guide #3110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
abcxff
wants to merge
1
commit into
10-01-feat_freestyle_deploy_docs
from
10-07-feat_site_railway_deploy_guide
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
# Deploying to Railway | ||
Deploy your RivetKit app to [Railway](https://railway.app). | ||
|
||
|
||
## Option A: Deploy from Template | ||
|
||
If you're starting from scratch, go to the Connect tab on the Rivet dashboard and follow the Railway deployment steps. This give you a 1-click deploy of the [RivetKit Railway template](). | ||
|
||
## Option B: Deploy Manual | ||
|
||
<Steps> | ||
<Step title="Prerequisites"> | ||
|
||
- [Railway account](https://railway.app) | ||
- Your RivetKit app | ||
- If you don't have one, see the [Quickstart](/docs/actors/quickstart) page or our [Examples](https://github.com/rivet-dev/rivetkit/tree/main/examples) | ||
- Access to the [Rivet Cloud](https://dashboard.rivet.dev/) or a [self-hosted Rivet Engine](/docs/general/self-hosting) | ||
|
||
</Step> | ||
<Step title="Setup Project for Railway"> | ||
|
||
Ensure your `package.json` has a start script: | ||
|
||
```json | ||
{ | ||
// ... | ||
"scripts": { | ||
"start": "node server.js" | ||
} | ||
// ... Rest of package.json | ||
} | ||
``` | ||
</Step> | ||
<Step title="Deploy to Railway"> | ||
|
||
1. Connect your GitHub account to Railway | ||
2. Select your repository containing your RivetKit app | ||
3. Railway will automatically detect and deploy your app | ||
|
||
Railway will automatically deploy your RivetKit app on every git push. | ||
|
||
Detailed steps are available on [Railway's docs](https://docs.railway.com/quick-start). | ||
</Step> | ||
<Step title="Set Environment Variables"> | ||
|
||
After selecting your project on the Rivet dashboard, go to Connect > Railway to get the environment variables needed. | ||
|
||
To add your environment variables: | ||
1. Go to your Railway project dashboard | ||
2. Select your service | ||
3. Navigate to the **Variables** tab | ||
4. Add the required environment variables and deploy your changes | ||
|
||
Detailed steps are available on [Railway's docs](https://docs.railway.com/guides/variables#service-variables). | ||
</Step> | ||
<Step title="Verify Deployment"> | ||
|
||
You should see your runner connected on the Connect tab of your Rivet Dashboard. Now you can create and connect to your Rivet Actors. | ||
</Step> | ||
|
||
</Steps> |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.