Closed rfay closed 10 months ago
To test this, ddev get https://github.com/rfay/ddev-platformsh/tarball/20230311_platform_routes
Current DDEV is OK with a non-existent routes.yaml
I think this is getting the routes right now!
@gilzow if you could take it for a spin,
ddev get https://github.com/rfay/ddev-platformsh/tarball/20230311_platform_routes
Mostly just validate the $PLATFORM_ROUTES that you find in the container, etc. ddev ssh
and use the tools there to look at $PLATFORM_ROUTES
woooooohhhhoooooo!!!!!!
.platform/routes.yaml
"https://{default}/":
type: upstream
id: iamtheid
upstream: "cyberspace-place-ddev:http"
# A basic redirect definition
# More information: https://docs.platform.sh/define-routes.html#basic-redirect-definition
"https://www.{default}":
type: redirect
to: "https://{default}/"
Inside the app?
gilzow@cyberspace-place-ddev-web:/var/www/html$ echo $PLATFORM_ROUTES | base64 --decode | jq '.'
{
"https://cyberspace-place-ddev.ddev.site/": {
"primary": true,
"id": "iamtheid",
"production_url": "<no value>",
"attributes": {},
"upstream": "cyberspace-place-ddev:http",
"type": "upstream",
"original_url": "<no value>"
}
}
💪
47
95
PLATFORM_ROUTES was previously just one static route. Now it's generated from .platform/routes.yaml. Not all features are relevant or supported.
This adds redis-persistent as a service, since that's what the magento2ce template requires.
Adds a drupal9 database load for better testing of drupal9
This does not yet get magento2ce to completion. More work is required. I'll need help. I'm not sure the template is actually using $PLATFORM_ROUTES correctly, as it still tries to connect to
redis.internal
even when $PLATFORM_ROUTES is properly filled out.