Question
Dokku always deploy to the top level domain
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
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.
×