Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLucas Santos
19,315 PointsDoes a Heroku app need to have . heroku in the URL?
I was reading a lot on Heroku and saw some examples of how people deploy the app to the Heroku server but now my main concern is the fact that when you have a Heroku app on the Heroku server the URL will look like this:
www.mywebsite. herokuapp.com
Is it possible to remove the . herokuapp part of the URL and just keep it as an authentic website such as www.mywebsite.com
1 Answer
Kevin Korte
28,149 PointsOf course, the .herokuapp.com is only if you just want a free domain. If you own a domain name, you can route incoming request to your mydomain.com into your heroku app.
Lucas Santos
19,315 PointsLucas Santos
19,315 PointsThanks for the reply Kevin.
is it possible that you can give me a quick example of this process or point me out in the right direction where I can see how this is done?
I currently have a ready ReactJs App with MongoDB and NodeJs/ExpressJS on the back end and all is working locally but now my problem is I have to upload it onto a Node server and Heroku seems to be the number one choice. I just have this last problem that I really need to sort out with the domain.
Thanks again for your help Kevin!
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsYeah, no problem. Heroku actually has pretty detailed docs that go over how to do it. Check this out and see if doesn't help: https://devcenter.heroku.com/articles/custom-domains
Lucas Santos
19,315 PointsLucas Santos
19,315 PointsInteresting, yeah thats pretty well detailed. I think i'll be able to sort this out with those docs. Thanks Kevin, much appreciated!
Lucas Santos
19,315 PointsLucas Santos
19,315 PointsHey man I can't select your answer as the "Best Answer" or "Up Vote" it. Very weird that I don't see those options.
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsNo worries, appreciate it though. Good luck and let me know if you need anything else!