Dokku DigitalOcean Deploy(无法访问Rails示例应用程序)

时间:2017-04-25 13:58:27

标签: ruby-on-rails docker deployment digital-ocean dokku

尝试使用Dokku将应用部署到DigitalOcean

遵循以下说明:
https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-dokku-application 然后:
http://dokku.viewdocs.io/dokku/deployment/application-deployment

所有看起来像一样部署: deploy rails app to DigitalOcean using dokku

=====> Application deployed:
       http://178.62.95.224:35954

但是当我们尝试在浏览器中导航到该应用时,我们无法在http://178.62.95.224:35954/上访问该应用。 (由Dokku分配的DigitalOcean VM和TCP端口的IP地址

我在做什么错误?我需要打开TCP端口吗? (在这种情况下 35954 ) (读取端口在服务侦听时默认打开... https://www.digitalocean.com/community/questions/opening-ports-on-my-server是这种情况吗?

尝试遵循以下建议:Rails Dokku deployments to Digitalocean receives random ports

echo "example.com" > /home/dokku/VHOST
dokku ps:rebuild ruby-rails-sample

dokku config:set ruby-rails-sample DOKKU_NGINX_PORT=80

但没有运气! still get port

1 个答案:

答案 0 :(得分:2)

您可能希望关闭ufw,以便随机端口向世界公开。您可以通过使用虚拟主机的子域来解决这个问题。