Rails Dokku部署到Digitalocean的过程随机接收端口 [英] Rails Dokku deployments to Digitalocean receives random ports
问题描述
我创建了一个Rails应用并将其成功部署到DigitalOcean。每次进行部署时,端口都会更改。第一个问题,如何停止它,以及如何使我的应用程序响应端口80,这样我可以从外部访问它而无需指定端口号?我的一部分希望回到heroku并花更多的钱,因为我没有这些头痛...
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...
推荐答案
我必须为我的应用启用VHOSTS:
I had to enable VHOSTS for my app:
domains:启用< app>
请参见 http://dokku.viewdocs。 io / dokku / configuration / domains /#domain-configuration
这篇关于Rails Dokku部署到Digitalocean的过程随机接收端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!