-
Notifications
You must be signed in to change notification settings - Fork 53
deis open opens http://<app name>.localhost in browser #111
Comments
deis open ...
opens http://<app name>.localhost in browser
Is this code still using the |
Huh, I was under the assumption that it'd use the base domain that you used when you initially ran |
Confirmed: if you |
So... my $0.02... you have to tell the router the platform domain and the router doesn't use etcd at all... so making people set an etcd key is a DRY exception we'd be forcing on our users. I like the idea of the CLI deriving the platform domain automatically by scraping the |
Looked at this a little bit, problem is that we use For now I'm going to make it so you can set a |
I really think there's no need for that. Workflow does not need to know the platform domain. Only the router and the client do. The router knows the platform domain already (maybe; @bacobgobbler made it optional recently) but workflow and builder shouldn't need to know it... git push can end with directions to use |
https://github.com/deis/workflow/search?utf8=%E2%9C%93&q=DEIS_DOMAIN is where the platform domain is "used". The |
Addresses the workflow side of deis#111 but doesn't do the client part so that it opens up the right domain
Addresses the workflow side of deis#111 but doesn't do the client part so that it opens up the right domain
Addresses the workflow side of deis#111 but doesn't do the client part so that it opens up the right domain
Addresses the workflow side of deis#111 but doesn't do the client part so that it opens up the right domain
Addresses the workflow side of deis#111 but doesn't do the client part so that it opens up the right domain
Addresses the workflow side of deis#111 but doesn't do the client part so that it opens up the right domain
Is someone able to verify that |
Yes. It works as expected. |
I'm reopening. This was working for me for much of the day. Now, it's not. What I'm experiencing is that with my client logged into The "deis" doesn't belong in that URL. If think the reason this worked for me for most of the day is because I was not specifying a platform domain for most of the day. Without a platform domain specified, the router would have created a vhost that matches the pattern Now that I've specified a platform domain, vhosts are a little more specific-- like I'll try to track down the error in the client code. |
Ah, I was trying to strip out the subdomain initially but it is not super straightforward when you are dealing with scenarios that do not include a subdomain like the tests and especially when you are dealing with I had a brainfart and decided we didn't need to strip but obviously that doesn't pan out all that great. |
Isn't the subdomain of the controller always
Stay tuned for PR. |
Ah... now that I think about it, the subdomain of the controller doesn't have to be |
But the code I posted will safely strip |
It's configurable in |
@helgi but the controller URL can literally be anything now. It can be It's virtually impossible to accurately infer the app URL from a controller URL that could look like anything. |
So we settle for this heuristic? |
Yeah - I commented in the PR on what the potential solution could be if we wanted to tackle that. tl;dr put onus on end user |
After creating a cluster, registering a deis client, and doing a
deis pull
type deployment... when I run:My browser opens with the URL: http://calmer-handbill.localhost/
It should open to http://calmer-handbill.$IP.xip.io/
The text was updated successfully, but these errors were encountered: