Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Setting up a Wordpress instance Locally with Local.

  1. Create the project in local by selecting 'Add Local Site'

  2. Once the site is created, clone the project via git

  3. Now we must symlink the repos together. In my case, I cloned my repo to ~/Documents/repos/ so a symlink for a default Local install looks like this:

    1. ln -s ~/Documents/repos/aptp/wordpress/ /Users/colegeerts/Local\ Sites/aptp/app

  4. Download the Database

  5. Conduct a find and replace for the base url of the application. In my case I use sed, so I invoke a command that looks like:

    1. sed -i 's/https:\/\/aptp\.com/http:\/\/aptp\.local/g' wordpress.sql

    2. This command will look different based on the URL you want to swap. Basically we should be swapping the live url for the Local one (smile)

  6. Import the site via adminer on the Database tab.

  • No labels