-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two domains lead to same app #12
Comments
Also, do my apps all need to be within /home/dokku ? for it to work? |
Do I make separate VHOST files for each app? |
Hi @kpennell, Yes, this plugin assumes that all dokku apps reside within |
My bad, Luke. I missed that somehow in this tut and the main dokku page. On Tue, May 20, 2014 at 7:27 PM, Luke Bunselmeyer
|
Hi @wmluke , └── dokku |
Do I need to put in VHOST files manually for each of them? |
Ahhh, I should have read your cmd logs more carefully...you need to set both domains in a single call... domains:set nodesamp www.ahalearning.co www.kyleapennell.com You were overwriting the first command with the second one. Let me know how it goes. |
Perhaps I'm misunderstanding the instructions. I guess I thought it went something like this:
So should it actually be I was trying to set the app called noderest to one domain. And the app nodesamp to the other domain. Sorry if I'm misunderstanding your suggestion. |
I double checked the domains and they seem to be set fine. Odd. Guessing I'm misunderstanding something elementary:
|
Perhaps it's the 2nd part that is overwriting? This is what I did
|
Am I missing something? |
Well, thanks anyway. Seems like a great plugin. Just a bit above my abilities right now. |
Hello @kpennell , since v0.3.1 Dokku has its own domain management built-in plugin. To configure your domain with the built in plugin, read this http://progrium.viewdocs.io/dokku/nginx Have a good day :) |
Thanks, Anton. On Thu, Jan 29, 2015 at 5:52 AM, AntonHansel notifications@github.com
|
Closing b/c #15 |
Hello. I'm a newbie with a problem. I truly believe I followed the dokku and domains-plugin instructions right. I think I'm just missing something on assigning to domains. Perhaps with a port.
I deployed two sample Node apps and they seem to have launched fine.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9947b492c768 dokku/noderest:latest /bin/bash -c '/start 4 seconds ago Up 4 seconds 0.0.0.0:49154->5000/tcp sharp_ptolemy c466d368aa02 ac37d44feb0a /build/builder 30 seconds ago Exited (0) 6 seconds ago loving_mcclintock eb0753770011 progrium/buildstep:latest /bin/bash -c 'mkdir 30 seconds ago Exited (0) 30 seconds ago silly_bohr 12e3d5ee5efc dokku/nodesamp:latest /bin/bash -c '/start 3 minutes ago Up 3 minutes 0.0.0.0:49153->5000/tcp jolly_torvalds
When I go to myip:49153 or myip:49154, the apps are working there fine.
So then I followed the instructions for doing the domains:
`
root@kyledokku:~# dokku domains:set nodesamp www.ahalearning.co
-----> Creating /home/dokku/nodesamp/DOMAINS
root@kyledokku:~# ssh dokku@187.180.224.50 domains:set nodesamp www.ahalearning.co
...done.
root@kyledokku:~# dokku domains:set noderest www.kyleapennell.com
-----> Creating /home/dokku/noderest/DOMAINS
root@kyledokku:~# ssh dokku@187.180.224.50 domains:set noderest www.kyleapennell.com
...done.
`
And both those seemed to work fine.
So when I go
docker ps -a
, here's what I see:CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9947b492c768 dokku/noderest:latest /bin/bash -c '/start 9 minutes ago Up 9 minutes 0.0.0.0:49154->5000/tcp sharp_ptolemy c466d368aa02 ac37d44feb0a /build/builder 10 minutes ago Exited (0) 10 minutes ago loving_mcclintock eb0753770011 progrium/buildstep:latest /bin/bash -c 'mkdir 10 minutes ago Exited (0) 10 minutes ago silly_bohr 12e3d5ee5efc dokku/nodesamp:latest /bin/bash -c '/start 13 minutes ago Up 13 minutes 0.0.0.0:49153->5000/tcp jolly_torvalds
When I go to either of those domains, they both go to the app that was deployed second. I'm seeing that
>5000
...does that mean they are both going to port 5000? Is that where I'm going wrong?Any other ideas on where to look or what to try?
The text was updated successfully, but these errors were encountered: