这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@andrewsomething
Copy link
Contributor

One last piece to get this usecase working again completely.

Thanks all!

@josegonzalez
Copy link
Member

@michaelshobbs can you confirm this fix and merge?

@michaelshobbs
Copy link
Member

👎 on me. Need port on the other lines as well. @andrewsomething can you update? Thanks!

@andrewsomething
Copy link
Contributor Author

@michaelshobbs Not sure I understand. The goal here is to only show the port when the IP address is being used. That seems to be the only line where that happens, AFICT.

@michaelshobbs
Copy link
Member

Hrm. I thought I remembered the port being displayed at the end of deploys. @josegonzalez can you confirm?

@andrewsomething
Copy link
Contributor Author

It is displayed at the end of a deploy, but that is generated using:

echo "$(dokku urls $APP | sed "s/^/       /")"

https://github.com/progrium/dokku/blob/master/dokku#L40

So this will show the port in that case as well.

@michaelshobbs
Copy link
Member

That is true. However the port is not included in the VHOST file that url/urls is reading from.....but I don't think we need to display the port in the case of using VHOSTs as nginx will be responsible for routing to the container via 443 or 80.

@josegonzalez do you agree with this assessment?

@josegonzalez
Copy link
Member

@michaelshobbs I think in his case he doesn't want to use a vhost and just wants to access the app in an ip-based world. In that case, would what url outputs include the port? Probably not.

@michaelshobbs
Copy link
Member

Yeah I was trying to convince myself that port only makes sense in the IP only case. I think we're all saying the same thing, right?

@andrewsomething

@andrewsomething
Copy link
Contributor Author

Think so. =)

@michaelshobbs
Copy link
Member

Cool. LGTM

michaelshobbs added a commit that referenced this pull request Dec 18, 2014
Display the port for an app when falling back to the ip address.
@michaelshobbs michaelshobbs merged commit 2d48d81 into dokku:master Dec 18, 2014
@andrewsomething
Copy link
Contributor Author

Thanks! Just a little background on why I care about this usecase... At DigitalOcean we get a lot of users that just want to test out Dokku without having to deal with DNS first. The better that experience, the more likely that they'll want to set something up with Dokku more permanently.

@michaelshobbs
Copy link
Member

Makes sense. We like dokku adoption! 😄

@andrewsomething andrewsomething deleted the port branch December 22, 2014 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants