Skip to content
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

Codespaces changed preview domain to app.github.dev (ddev launch fails) #5256

Closed
1 task done
mandrasch opened this issue Aug 12, 2023 · 2 comments
Closed
1 task done
Milestone

Comments

@mandrasch
Copy link
Collaborator

mandrasch commented Aug 12, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Output of ddev debug test

No response

Expected Behavior

  • ddev launch works in codespaces ddev project, e.g. craftcms project

Actual Behavior

  • url not found since github changed codespaces url, see below

Steps To Reproduce

No response

Anything else?

Codespaces changed their port forwarding domain:

To prepare for this change, replace any hardcoded references to preview.app.github.dev in your code with the GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN environment variable by July 31 to avoid any disruptions. The environment variable value will be updated from preview.app.github.dev to app.github.dev when the migration completes. Learn more about environments variables here.

https://github.blog/changelog/2023-07-14-codespaces-port-forwarding-domain-name-updates/

Hardcoded here:

  • ddev/pkg/ddevapp/ddevapp.go

    Lines 2545 to 2546 in ef44484

    url := fmt.Sprintf("https://%s-%s.preview.app.github.dev", codespaceName, app.HostWebserverPort)
    httpsURLs = append(httpsURLs, url)

(Currently I don't have time resources to change and test this myself and provide a quick PR. Hope that I can provide such small fixes in future by myself (need to learn the whole workflow how to test that ddev still works after my changes 😬 😉 ))

@rfay
Copy link
Member

rfay commented Aug 12, 2023

Thanks! This one you could probably just do with the edit button on github, it's welcome. And testing might be as easy as downloading the artifacts from the PR page and running them on Codespaces.

@rfay rfay added this to the v1.23 milestone Aug 12, 2023
@rfay rfay changed the title Codespaces changed preview domain to app.github.dev Codespaces changed preview domain to app.github.dev (ddev launch fails) Aug 12, 2023
@rfay rfay modified the milestones: v1.23, v1.22.2 Aug 15, 2023
@rfay
Copy link
Member

rfay commented Aug 22, 2023

@rfay rfay closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants