I have recently started working on WordPress development for my company, and they provided me with a repo to clone the project. I want to run the theme and fix issues in my project structure. I have both composer.json
and package.json
. How can I run it locally and enable live reloading? I am unable to load the website as it appears on the live site. Can anyone explain how to make my repo run locally?
Hi @saiakhil
The easiest way would be to use a free plugin like WP Migrate Lite, which you can install on the live site and then use to create a full site export.
Once you have that export zip, you can drag and drop it over the Local app to start a native import.
Hi Nick,
Thanks for replying. I am working on a software project, and I highly doubt I can use plugins as I want. They provided me with a repo to clone and instructed me to run it like a normal WordPress site using Local
Thanks,
Akhil
I was able to export the database through phpMyAdmin and tried to export and activate the plugins. However, once they are activated, my site takes a long time to load, and my pages and locations are still missing.
First, check to make sure the configurations of your Local site and live site are in line. For example, is the Local version of your site using the same WP/PHP/Database versions and server type as your live site?
Did you import your entire WP-Content directory or just the plugins? Is the live site using a custom theme?
I tried to zip entire wp-content but it is unable to zip entire content. so i tried to clone plugins folder itself and activate them. yeah it is using custom theme Nick
Did you get the custom theme uploaded to Local as well then?
Did you also check your configuration settings as I mentioned above?
What about media and uploads?
I uploaded the custom theme in my local make it active but the pages and the media are not showing up i tried to download the media, pages and locations it has around 40+GB. What i have to do here?
Is the post and page data showing up in the DB?
The media you’ll have to port over manually as well. With 40+ GB you might have to break it up into smaller chunks.
I tried to check in wp_posts table but i couldn’t find pages or posts in it. What is the best way to export the media in the smaller chunks?. I tried to do it through updraft plus my media got divided into 103 folders but it is taking too much time.
Thanks,
Akhil
Originally it sounded like you couldn’t access the live site to create a backup. Can you not just create a full site backup zip with Updraft that you can load into Local so it’s one cohesive import? It sounds like the site is quite large so it might take a little bit of time but would be a lot easier than all the manual work you’re doing.
if i use updraft plus it is showing me to back up like the above i cant able to zip entire folder at a time.
Okay well going back to the issue as it is so far, it doesn’t sound like everything was included in your database when you moved that over either. We have some steps for manually importing a site into Local here you can use if you want to try and start fresh. I would try and at least take a new DB export and be sure it’s including all of the tables and data. You’ll essentially have to create a new, blank site in Local first, then manually import your database, and then manually import your WP-Content.
anyway i need to get wp-content otherwise i can get my website locally right? if i have only db will it loaded as per my website?.
Correct, you’ll need your WP-Content + DB in order for the site to look and function as the production version does.
Hi nick, i have replaced WP-content + DB as you mentioned but still my website doesnot have media files and pages that already existed