I migrated between servers (Containered) and everything is working fine so war. However, each time I am doing XMLHttpRequest, the app tries to get the PDF from my old domain.
I updated the APP_URL in the new installation to an ip address as followed:
APP_URL=http://10.0.0.1:8001
REQUIRE_HTTPS=false
But looking at the network tab in my browser, I see that the request goes to my old domain. I tried editing the .env file, but I could not find it.
Also, all the customer portal URLs point at my old URL
Can you explain further? I have the env file containing my docker environment variables. I updated my APP_URL there and rebuilt it, but this did not take any effect.
Since I transfered the volumes to my new installation, I thought I might have also transfered the old APP_URL in some environemnt file.
I suppose the .env file is the Laravel native environment file, not the env file for the docker containers. I updated the APP_URL in the docker environments as I showed above, but that did not fix the issue. Also, I did not manage to find the Laravel env file. Correct me if I am completely off track.
In which file do I have to update what?
Thanks, I might do that.
Also, I could not find any official documentation or discussion on how to migrate containers between servers (Also between domains and architectures). Am I the only one having struggle with this?
Having the same challenge when migrating between URL’s, things that keep the old URL despite setting the APP_URL to the correct thing are the “view portal” links on an invoice.
A discussion here suggests that some settings are saving a fully qualified URL which would mean migrating will require some fiddling of the data directly (“view portal” links on invoices appear to be broken… Logo links break but that’s not difficult to fix by reuploading the logo).