• jadds

    (@jadds)


    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]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jadds

    (@jadds)

    Plugin -> Better search replace

    Plugin -> Better search replace

    Given this second post without any context, are you saying you’ve been able to solve the problem with the “Better Search Replace” plugin?

    If not, this is something that the plugin should handle. If, for some reason, it’s not working for you, I’ll recommend posting in the plugin’s support forum to get help from its author and user community: https://ww.wp.xz.cn/support/plugin/better-search-replace/

    Alternatively, you may try similar plugins to see if they’ll do a better job: https://ww.wp.xz.cn/plugins/search/search+replace/

    Good luck!

    Thread Starter jadds

    (@jadds)

    Hey George, sorry yes that was a fairly useless post. I did try Better Search Replace but it did not work and I have posted in the bsp forum. I am now looking at wp-cli to see if that suits my requirements better. Thank you.

    bvbaked

    (@bvbaked)

    I have used WP CLI with a lot of success, so would definitely recommend that path forward, assuming you have the access to to it

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Moving from Dev to Prod’ is closed to new replies.