-
My config looks like the below but I'm not getting a connection with the Ray app. Can you tell me what is wrong with the setup below please? <?php
return [
/*
* The host used to communicate with the Ray app.
*/
'host' => 'ddev-XXX-craft3-web',
/*
* The port number used to communicate with the Ray app.
*/
'port' => 443,
/*
* Absolute base path for your sites or projects in Homestead, Vagrant, Docker, or another remote development server.
*/
'remote_path' => '/var/www/html',
/*
* Absolute base path for your sites or projects on your local computer where your IDE or code editor is running on.
*/
'local_path' => '/Users/russback/Sites/XXX-3.com'
];
ddev describe
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
Project: XXX-craft3 ~/Sites/XXX-3.com https://XXX-craft3.ddev.site │
│ Docker environment: docker 20.10.12 │
├────────────┬──────┬──────────────────────────────────────────────────────────────────────┬────────────────────┤
│ SERVICE │ STAT │ URL/PORT │ INFO │
├────────────┼──────┼──────────────────────────────────────────────────────────────────────┼────────────────────┤
│ web │ OK │ https://XXX-craft3.ddev.site │ php PHP7.4 │
│ │ │ InDocker: ddev-XXX-craft3-web:3000,443,80,8025 │ nginx-fpm │
│ │ │ Host: localhost:61503,61504,61505 │ docroot:'web' │
│ │ │ │ NodeJS:17 │
├────────────┼──────┼──────────────────────────────────────────────────────────────────────┼────────────────────┤
│ db │ OK │ InDocker: ddev-XXX-craft3-db:3306 │ mariadb:10.3 │
│ │ │ Host: localhost:61502 │ User/Pass: 'db/db' │
│ │ │ │ or 'root/root' │
├────────────┼──────┼──────────────────────────────────────────────────────────────────────┼────────────────────┤
│ PHPMyAdmin │ OK │ https://XXX-craft3.ddev.site:8037 │ │
│ │ │ InDocker: ddev-XXX-craft3-dba:80,80 │ │
│ │ │ `ddev launch -p` │ │
├────────────┼──────┼──────────────────────────────────────────────────────────────────────┼────────────────────┤
│ Mailhog │ │ MailHog: https://XXX-craft3.ddev.site:8026 │ │
│ │ │ `ddev launch -m` │ │
├────────────┼──────┼──────────────────────────────────────────────────────────────────────┼────────────────────┤
│ All URLs │ │ https://XXX-craft3.ddev.site, https://127.0.0.1:61504, │ │
│ │ │ http://XXX-craft3.ddev.site, http://127.0.0.1:61505 │ │
└────────────┴──────┴───────────────────────────── |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Also coming up short on this one after many tries. |
Beta Was this translation helpful? Give feedback.
-
A kind member of the Craft CMS Discord suggested the following and it's worked for me:
<?php
use craft\helpers\App;
return [
'enable' => App::parseBooleanEnv('$CRAFT_DEV_MODE'), // This is optional and will change depending on your env setup
'host' => 'host.docker.internal',
]; I didn't think there was any way this would work because it seems so simple, but it's worked perfectly for me ever since. |
Beta Was this translation helpful? Give feedback.
-
Solved this by setting the |
Beta Was this translation helpful? Give feedback.
-
I have got the Twig filters working: |
Beta Was this translation helpful? Give feedback.
Solved this by setting the
host
andport
in the config. Rather than the ddev project name/URL I changedhost
tohost.docker.internal
andport
to23517
and it worked.