weidazhao / Hosting

Hosting prototype
170 stars 35 forks source link

Hosting ASP.NET Core MVC 6 Website and understanding the Url's #25

Closed johnkattenhorn closed 8 years ago

johnkattenhorn commented 8 years ago

Sorry if this is a dumb question, I've got lost somewhere along the line.

I've added an MVC6 Core app to a stateless service by following along with your example and it works ... but I don't understand how I should move forward to allow the user to be able to use a single predicable url to get to the site.

I can browse to each individual instance of the site no problem but of course the url and port are not predicable or friendly.

Do I need the gateway as well ? I assumed I only needed it if I had multiple services I want to surface ?

johnkattenhorn commented 8 years ago

I think I've answered my own question. I think I do need the gateway as it will forward requests to the correct service and in development mode has a single instance with a well known port.