
From here I can utilise wp-cli to drop the default database (avoid any conflicts on import), import the live database and run a search and replace to convert all URLs over.
LOCAL BY FLYWHEEL WITH NGROK INSTALL
I then SSH into the install (right click the site in Local and click open site SSH) and navigate to the wordpress install directory (cd app/public).I name this something obvious (usually the url of the live site so becomes v). (I would like to utilise blueprints here as I like to use certain plugins when developing, like debug bar and query monitor, but unfortunately these do not currently work on my system). Firstly, add a site in local by clicking on the + icon located at the bottom left corner of the interface.This is assuming you have the content directory for the wordpress site you wish to setup and a database copy. I allow Local to create the site first and organise my sites within the default “Local sites” directory but I have a particular method of setting up a site which keeps things simple and fast. Whenever I setup a new local site I stick to the same pattern. Note: before even starting to work in wordpress using PHPStorm make sure wordpress integration is enabled! Detailed below are a few of the ways I do things to make my workflow a little smoother using these amazing tools. With Local, the complicated stuff is all hidden away and I can focus on my work and leave the environment setup alone. This usually resulted in a fresh install of VVV rather than ever finding where I had messed up. I loved VVV but without prior knowledge of any of it’s inner workings it was a rather steep learning curve that caused plenty of frustration when things didn’t work as expected. I recently switched from VVV ( Varying Vagrant Vagrants) to Local by FlyWheel (formerly Pressmatic).
