{"id":128,"date":"2023-12-30T21:41:37","date_gmt":"2023-12-31T02:41:37","guid":{"rendered":"https:\/\/dev.annaelizabethshirley.com\/?p=128"},"modified":"2024-01-08T20:29:03","modified_gmt":"2024-01-09T01:29:03","slug":"devdiary-entry-6","status":"publish","type":"post","link":"https:\/\/dev.annaelizabethshirley.com\/devdiary-entry-6\/","title":{"rendered":"\ud83d\udcbb #devdiary entry 6"},"content":{"rendered":"\n

I worked on trying to copy our company development site to my computer so that I can have my own<\/em> development site to work on. On this computer I use Local<\/a> 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. <\/p>\n\n\n\n

Anyway, it is a large website, so I decided I would try a fresh migration via another method…<\/p>\n\n\n\n

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

That worked!<\/p>\n\n\n\n

*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.<\/em> <\/p>\n\n\n\n

…I ended up going with a plugin after all the time I spent on trying to do it manually with Local…<\/p>\n\n\n\n

<\/p>\n\n\n\n

The local site was initially running very s l o w. It was taking minutes to load a page. <\/p>\n\n\n\n

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.<\/p>\n\n\n\n

Next, I would like to connect GitHub to my Local<\/a> site.<\/p>\n\n\n\n

I did follow the instructions and attempted to do this but it doesn’t seem to be working for me.<\/p>\n\n\n\n

I’ve reached out to Local support to see what they say.<\/p>\n\n\n\n

<\/p>\n\n\n\n

In the meantime, I started going through The Odin Project Foundations course<\/a>. 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.<\/p>\n\n\n\n

This site is like my rubber duck<\/a> 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.<\/p>\n\n\n\n

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.<\/p>\n\n\n\n

Cheers.\u2728<\/p>\n","protected":false},"excerpt":{"rendered":"

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 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/posts\/128"}],"collection":[{"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":8,"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/posts\/128\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.annaelizabethshirley.com\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}