[英]Dokku DigitalOcean Deploy (Cannot access Rails Sample App)
Trying to deploy an app to DigitalOcean using Dokku 尝试使用Dokku将应用程序部署到DigitalOcean
Followed the instructions on: 遵循以下指示:
https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-dokku-application then: https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-dokku-application然后:
http://dokku.viewdocs.io/dokku/deployment/application-deployment http://dokku.viewdocs.io/dokku/deployment/application-deployment
Everything looked like it was deploying: 一切看起来都像在部署:
=====> Application deployed:
http://178.62.95.224:35954
But then when we attempt to navigate to the app in a browser, we cannot access the app on http://178.62.95.224:35954/ 但是,当我们尝试在浏览器中导航到该应用程序时,我们无法通过http://178.62.95.224:35954/访问该应用程序
( the IP address of the DigitalOcean VM and TCP Port assigned by Dokku ) ( Dokku分配的DigitalOcean VM的IP地址和TCP端口 )
What am I doing wrong ? 我做错了什么? Do I need to open the TCP port?
我需要打开TCP端口吗? ( in this case 35954 ) ( read that ports are open by default when ever a service listens on it... https://www.digitalocean.com/community/questions/opening-ports-on-my-server is this the case? )
( 在这种情况下为35954 )( 阅读端口,默认情况下,当服务侦听端口时,端口默认为打开... https://www.digitalocean.com/community/questions/opening-ports-on-my-server是这个案例? )
Tried following the suggestion in: Rails Dokku deployments to Digitalocean receives random ports 按照以下建议进行了尝试:将Rails Dokku部署到Digitalocean会收到随机端口
echo "example.com" > /home/dokku/VHOST
dokku ps:rebuild ruby-rails-sample
and 和
dokku config:set ruby-rails-sample DOKKU_NGINX_PORT=80
You probably want to turn off ufw
so that the random port is exposed to the world. 您可能要关闭
ufw
以便将随机端口暴露给ufw
。 You can get around this by instead using subdomains for virtualhosts. 您可以通过使用虚拟主机的子域来解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.