Moving from Dev to Prod
-
Howdy All. Need some help with a migration issue relating to URL addresses. My current set up.
Development site on my macbook pro using docker.desktop (Latest version). Production site on AWS Lightsail with docker on ubutnu. Docker images are wordpress:latest and mysql:8.0. Docker is configured to host the /var/www/html on an external drive ./wp-data:/var/www/html. I have configured backup and restore scripts from both prod to dev and dev to prod.
The issue for me appears to be related to how URL’s are captured specifically for images. My prod site is [ redundant link deleted ] and my dev is http://wpdev.localhost. I have successfully been able to rewrite the site URL and HOME in SQL before I do a push to prod or restore from prod. But my image files when I push to prod retain the http://wpdev.localhost URL in the source code for my prod.
e.g. from view source on my prod site ->
class="wp-block-cover__image-background wp-image-11 size-large" alt="" src="http://wpdev.localhost/wp-content/uploads/2025/09/pexels-ramon-hernandez--1024x683.jpg"Im not sure if there is a useful way around this. But wondered if anyone else has a DEV -> PROD setup and how they handle the URL’s. I dont really want to go down the HTTPS track on my DEV site unless absolutely required.
Thanks in advance!
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.