Question

Dokku always deploy to the top level domain

  • Posted September 15, 2014

Dears, I’m new to Dokku and I need a little help

After installing an image with Dokku and adding the SSH keys and everything I have 2 node.js apps and I want them to be at node1.example.com and node2.example.com

The issue I’m facing is that when I do a git push I find that the top level domain ex:“example.com” always points to the latest app deployed and also the subdomain is not working

So that means that any app I deploy always gets deployed to the top level domain and not a subdomain

Isn’t Dokku who handles this or there’s any configurations from my side ?

command used to deply: After cloning a git repo

git remote add node1 dokku@example.com:node1

git push node1 master

of course I’ve changed example.com to my domain name and updated the records on DO’s DNS page

Even after the deployment is done Dokku says:

=====> Application deployed: http://node1.example.com

but when I try to open the URL I get a white page and when I visit the top level domain I get the app

So please help and thanks for your time

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Guys thank you a lot it worked :) I had to change my DNS settings from *.msaleh.me to just * and wait for 3 to 6 hours Thanks a lot :)

Guys, My current settings are: http://i.imgur.com/xWQZKg9.png

And it still didn’t work

Your help is greatly appreciated

The top level domain problem I fixed by manually defining the domain for one of the apps.

At the end of the execution for git push node1 master you should have a message saying which domian was given to your app. e.g. http://example.com:49153 or http://node1.example.com

My website’s top level domain http://txgruppi.com/ is actually the http://site.txgruppi.com/ app

It sounds like you have your DNS configured incorrectly. You need two A records, the first pointing to the domain (example) and the second is a wildcard subdomain (*.example.com).

Checkout: How to Use the DigitalOcean Dokku Application