Thursday, March 17, 2016

Multiple Heroku apps on a single domain with different ports

Leave a Comment

We have a base domain http://test.com. This domain should serve several Heroku-Apps on different ports. How is this possible in Heroku combined with Meteor?

For example we have a JSON-API on another port than a XML-API.

I also want to use different ports for our microservices. So that we can scale them.

But I do not want the solution from StackOverflow: Multiple Heroku apps on a single domain or hosting on different sub-domains.

Thanks for your help!

1 Answers

Answers 1

Not possible. Heroku sets the port for your app, and you cannot configure it by yourself.

From Heroku documentation:

The port to bind to is assigned by Heroku as the PORT environment variable.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment