Skip to content
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

Update the monorepo tutorial with more detail, and restructure so Domains are automagically detected #701

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

echohack
Copy link
Contributor

I ran through this tutorial tonight and thought it could use a bit of extra detail.

When you try to add your domains first before deploying a project with a bound port, you will have to manually define the port, then later either set the env.$PORT variable or recreate the domain entirely so the correct port that the service is bound to is automagically detected. I swapped the order of the tutorial so you don't have to repeat these steps (which can be confusing) and instead just bound it correctly the first time. That should make it alot easier for folks to get the idea behind the basics of wiring up a monorepo.

…domain ports are automagically detected

Signed-off-by: echohack <[email protected]>
@brody192
Copy link
Contributor

Hello!

Thank you for your PR!

For some context, in the past when you created a domain without a deployment it would not ask for a port and since the frontend and backend in the example both listen on $PORT it would all just work.

But since that has changed and setting a port is required, I completely agree, this restructure does make far more sense now.

LGTM!

@brody192 brody192 merged commit 209a5cb into railwayapp:main Mar 12, 2025
1 check passed
@echohack echohack deleted the monorepo-tutorial-update branch March 13, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants