本文介绍了Dokku安装后更改设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的数字海洋液滴上安装了Dokku,但是在设置我的dns记录之前做了这么做,所以Dokku被安装在IP上。现在我更改了我的dns记录,所以网站可以通过 site.com 访问。我可以通过 site.com:port 访问我以前创建的Dokku容器,如何更改Dokku设置以访问我的应用程序 - appname.site .com

解决方案

Per :

要解决这个问题,您将首先需要更新/ home / dokku / VHOST文件,添加域名 - 这将修复任何新生成的部署,但现有的应用程序需要从/ home / dokku目录中删除(/ home / dokku / foo, / home / dokku / bar等),并重新部署,以使此更改生效,因为每个Dokku应用程序在这些/ home / dokku /路径中都有一个单独的nginx.conf,那些将需要重写。


I installed Dokku on my Digital Ocean droplet, but did it before setting my dns records, so Dokku was installed on IP. Now I changed my dns record, so site can be accessed through site.com. I can access my previously created Dokku containers through site.com:port, how can I change Dokku settings to access my app like this - appname.site.com

解决方案

Per https://github.com/progrium/dokku:

To fix the issue, you will first need to update the /home/dokku/VHOST file, adding the domain name -- this will fix any newly generated deployments, but existing apps will need to be deleted from the /home/dokku directory by name (/home/dokku/foo, /home/dokku/bar, etc.) and redeployed for this change to take effect, since each Dokku application has a separate nginx.conf within those /home/dokku/ paths and those will need to be re-written.

这篇关于Dokku安装后更改设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-25 17:47