Communication between warden environments #778
-
I have been looking at this to try fix my issue but I don't seem to quite be able to resolve it. I have 2 warden environments:
I need to make API calls into Magento from Laravel. My Magento
My Laravel
Running However running
As I understand (possibly incorrectly) the I have made dozens of changes to both files. I realised I only needed to make requests from Laravel -> Magento so stopped trying to make the config yaml files match as thats probably over-complicating it by enabling both projects. Ive now been working on I currently have just this for the laravel config and have removed the magento one:
Can anyone suggest where I am going wrong or point me in the right direction? Do I need to declare both networks in the laravel config or is this redundant? Am I going to have to resort to hard-coding the ip in extra_hosts for magento.test (that doesnt seem ideal, the ip can change right?). My current config has got back to the point when i can access both from a browser (i have gone back-and-forth between that working and breaking) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out. Warden already adds a hosts entry that routes to traefik to the php container (the one connected to with
Just change |
Beta Was this translation helpful? Give feedback.
I figured it out. Warden already adds a hosts entry that routes to traefik to the php container (the one connected to with
warden shell
) so it was as simple as adding this into the.warden/warden-env.yml
file of the project you wish to make HTTP requests from:Just change
app.magento.test
to the project you wish to connect to.