blog of a wordpress dev

blog categories:

💻 #devdiary entry 6

I worked on trying to copy our company development site to my computer so that I can have my own development site to work on. On this computer I use Local and followed their instructions to import a website. Both by uploading a zip and manually. Uploading by zip did not work. And when I did it manually, the content did not migrate.. no pages, posts, users, etc. The plugins did though… Still not sure what I did wrong. I imported the wp-contents folder and the .sql database.

Anyway, it is a large website, so I decided I would try a fresh migration via another method…

I remembered that I purchased the full version of the All-In-One plugin a few years ago. After some digging around I was able to find it.

That worked!

*Note, for WP devs reading this who want to migrate a live site to local, there is also the ‘classic’ method of using XAMP or LAMP.

…I ended up going with a plugin after all the time I spent on trying to do it manually with Local…

The local site was initially running very s l o w. It was taking minutes to load a page.

I rebooted both Local and the computer. I also added define( ‘WP_MEMORY_LIMIT’, ‘512M’ ); to the wp-config.php file and adjusted the memory limit in the php.ini file. This seems to have solved the problem.

Next, I would like to connect GitHub to my Local site.

I did follow the instructions and attempted to do this but it doesn’t seem to be working for me.

I’ve reached out to Local support to see what they say.

In the meantime, I started going through The Odin Project Foundations course. Yeah, I know, I am all over the place with my learning (learning various things at once) but that partly why I created this blog.. to keep track and eventually be more organized, if possible.

This site is like my rubber duck in a way. Not so much to talk out a problem with my code but to talk out my day-to-day and learning goals.

Anyways, I likely will go to bed soon. I’ve been taking advantage of having some time off for the holidays and staying up late the past few nights.


Leave a Reply

Your email address will not be published. Required fields are marked *