Web services on Heroku normally use the PORT environment variable, but I want to run a custom mail server on Heroku. So I need to expose 2 ports, preferably 110 and 25, but I can live with alternatives. Is it possible?
There are just two extra steps you need to do to set up a repo to deploy to multiple Heroku apps. Step 1. Add and/or Rename Your Heroku Remotes If you create a heroku app via their CLI using heroku create a remote called heroku will be automatically created for you in your git settings.
Heroku expects a web application to bind its HTTP server to the port defined by the $PORT environment variable. Many frameworks default to port 8080, but can be configured to use an environment variable instead.
Heroku provides helpful tools (namely pipelines, Heroku CI, and review apps) for creating and maintaining your app’s staging and test environments. Let’s say you have an application running on your local (development) machine and you’re ready to push it to Heroku.
The web process type is special as it’s the only process type that will receive HTTP traffic from Heroku’s routers. Other process types can be named arbitrarily. from the Heroku documentation. 1. Create one dyno for each app (workspace) you want to run Create one named Heroku app per web app using the Heroku CLI and bind it a Git remote.
No, just running some quick tests against the heroku proxy (proxy.heroku.com) I can only make connections to ports 80 and 443. Being as heroku don't provide any POP/SMTP it doesn't make sense for them to have those ports open I'm afraid.
Dotcloud allows this: https://github.com/pepijndevos/Twemail
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With