1

I'm working with a client that just lost control of their domain name and I'd like to be able to continue working on the site.

Since the domain name is no longer resolving to the Digital Ocean server, I'd like to start accessing the site directly via it's IP address and possibly a random port as well.

I've got a postgres container setup with a randomly generated port number 0.0.0.0:XXXXX using the postgres plugin, but would like to do the same with the app container.

1
  • And if someone could add a dokku tag as well I'd appreciate it.
    – Nilloc
    Feb 15, 2016 at 21:29

1 Answer 1

2

You'll want to turn off vhost by running the following command:

dokku config:set APP NO_VHOST=1

Note that in a future dokku version, we may provide better procedure around this

5
  • Works great, thanks! I assume I just remove this config when I want to go back subdomain based apps?
    – Nilloc
    Feb 18, 2016 at 18:28
  • Yes, that is correct. Feb 19, 2016 at 2:58
  • I should add that after removing the NO_VHOSTS I also had to rebuild the app to get it to fix the nginx.conf too, but otherwise it was pretty easy, Thanks again.
    – Nilloc
    Feb 19, 2016 at 18:14
  • I don't argue/question the value of your answer! But please explain the "we may provide" ... Eg by adding an appropriate "disclosure" about any type of link that may exist between you and "dokku" (if such link exists), for those who are not familiar with "dokku". Such disclosure seems to comply with the rules around here also ... and can prevent invalid flagging of this answer ... Feb 22, 2016 at 13:12
  • I'm josegonzalez, one of the maintainers of dokku. Feel free to flag my answer - which is otherwise valid... - if that isn't good enough. Feb 23, 2016 at 16:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .