-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
fix: change codespaces forwarding domain name to app.github.dev #5257
Conversation
Download the artifacts for this pull request:
See Testing a PR |
How can I use these for testing? As far as I understand ddev is installed in
|
Just download the linux/amd64 binary and put it in your codespaces environment in the $PATH. Make sure you have the right one, using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know if there's anything like an environment variable or command we can use in Codespaces to get the official app.github.dev
? I hate to wire the wrong thing in again.
Thanks for taking care of this, and for watching out for DDEV Codespaces usage! We don't have an easy way to do automated testing of the Codespaces environment.
Yes, there is I'll try to change it and test it the way you described in the next days. |
Sorry, I guess you had said earlier about GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN, but didn't use it in your patch. BTW, you can just open up DDEV with codespaces and switch to the appropriate branch and You can then experiment with
and then use previewDomain in the sprintf that's currently there with a wired domain. Thanks so much for taking this on and exploring this territory! |
Thanks @rfay! Maybe I'll have time to test this tomorrow, but maybe it will be end of week / weekend. (Just as information if anybody wants to fix / try this in meantime since it's a tiny bug. 🤓) Cheers! |
Uploaded linux/amd64
(same as in https://ddev.readthedocs.io/en/latest/developers/building-contributing/#testing-a-pr) Worked,
|
(Used the new artifact from "PR Build / Build DDEV executables (pull_request)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I manually tested and it's great, thanks!
The Issue
Codespaces changed their port forwarding domain from
preview.app.github.dev
toapp.github.dev
https://github.blog/changelog/2023-07-14-codespaces-port-forwarding-domain-name-updates/
ddev launch
did not work anymoreHow This PR Solves The Issue
preview.app.github.dev
withapp.github.dev
Manual Testing Instructions
ddev launch
in codespaces / check withddev describe
if correct domain is used for ddev project urlInfo from @rfay: "testing might be as easy as downloading the artifacts from the PR page and running them on Codespaces."
I haven't done this yet - not quite sure how to exactly do this.
(Demo repo I used recently: https://github.com/mandrasch/ddev-craftcms-vite)
Automated Testing Overview
Related Issue Link(s)
#5256
Release/Deployment Notes