Cloning Media Library for JITP from Staging to Production Site
Hope you're doing well and looking forward to the summer as much as I am.
The JITP is once again ready for a clone of its media library for April and May 2021 from the jitpstaging.commons site to the jitp.commons production site. Thanks so much in advance, once more, for your help on this!
Please let me know if I can provide any further information.
Thanks so much for your help,
Managing Editor, The Journal of Interactive Technology and Pedagogy
#1 Updated by Boone Gorges 5 months ago
- Status changed from New to Resolved
Good to hear from you, and thanks as usual for the detailed ticket references.
I've performed the sync. All files from the staging site should now be cloned to the production site. Let me know if you spot any problems, and happy spring!
#2 Updated by Patrick DeDauw 4 months ago
Thanks so much for the rapid turnaround. I now seem to be having the problem where new (as in added today) additions to the jitp.commons media library (we re-add our posts' Featured Images) are not showing up. I tested by just embedding the new additions to the body of a draft post (like this one: https://jitp.commons.gc.cuny.edu/wp-content/blogs.dir/614/files/2021/05/Featured-Image-6.png ) and came up with a broken image.
I know it's normal to not have the cloned media appear in the library, but this seems exceptional. Any ideas what's going on?
#3 Updated by Boone Gorges 4 months ago
Hi Patrick - Thanks for your patience as I sorted this out. I had mistakenly synced the entire directory from jitpstaging to jitp, which included an .htaccess file that we use for access-protection on the Commons. That .htaccess file contained a redirect rule that pointed requests of the form wp-content/blogs.dir/ to jitpstaging.commons. I've corrected the file and the redirects are no longer taking place in this way.
Note that you may need to flush your browser cache in order to see the changes, because the incorrect 301 redirects will be cached somewhat aggressively by your browser.
Ray, I'm CCing you just as a warning in case this happens in the future - beware of wholesale rsyncs!