Wordpress : Local installation from an existing project

When you want to install an existing project on your own computer.

In this case the source project exists somewhere. (if not check out "from scratch")

Basically, it's the same process as you want to deploy your project to an other server.

You can follow the same way that deployment on aqualab.

Install

Install Core
wp core download

 

Copy files

Copy plugins
cd wp-content/plugins/
scp -r aquaverde@aqualab.ch:sites/PROJECT/wp-content/plugins/* .
Copy files
cd wp-content/uploads/
scp -r aquaverde@aqualab.ch:sites/PROJECT/wp-content/uploads/* .

 

Export DB

From aqualab.ch. Connect to aqualab.ch, go to project directory and run the WP-CLI command:

wp db export --url="//PROJECT.local"

Will export the db and replace the URL

Import

wp option update siteurl 'http://PROJECT.local'
wp option update home 'http://PROJECT.local'

 

Run the WP-Installer from browser

http://PROJECT.local