I created a rails app and have successfully deployed it to DigitalOcean. Every time I make a deployment, the port changes. First question, how do I get it to stop, and how do I get my application to respond to port 80 so I can hit it from the outside world without specifying the port number? Part of me wants to go back to heroku and just pay more because I don't get these headaches...
Rails Dokku deployments to Digitalocean receives random ports
300 Views Asked by Evan Zlotnick At
2
There are 2 best solutions below
0

I had to enable VHOSTS for my app:
domains:enable <app>
See http://dokku.viewdocs.io/dokku/configuration/domains/#domain-configuration
Unless you configure Dokku to use your domain name, it will serve the app at a random port.
Put your root domain name in the file
/home/dokku/VHOST
From the Dokku docs: