Enable the add-on ‘Volumes Manager’ then restart Local
Go into each site that you want to move and start them
Go to the More > Volumes section of the site info
Adjust the directory path easily by changing the values on the left side, then click ‘Remap Volumes’
Local will provision the updated mappings
After doing this for all of the sites you want to move/change, edit the ~/Library/Application Support/Local by Flywheel/sites.json file and adjust the ‘path’ strings there too.
Now you’ve moved the site location, and you haven’t completely borked your Local config!
Just completed steps 1-7 and both of my sites are working from their new folders. However, I went to complete the final step but it seems that I don’t have a Local by Flywheel folder within Application Support. Does anyone know if and where it has been moved? With the changes and upgrades that have happened recently, is this step still necessary?
My apologies. I misread the path that sc0ttkclark specified. The correct path is the root of the user folder/Library/Application Support as opposed to the root directory of the drive/Library/Application Support.
Having followed this process on a PC I get stuck at number 6 when browsing for directory…
“Sorry! You must provide a path in /Users”
When I manually update path I get…
“Sorry! There were invalid paths provided. Please ensure that all paths have a valid source and destination. Also, all source paths must begin with either /Users or /Volumes.”
Any ideas on how I can get over this issue?
This is after having issues where it failed to start local machine and most recently “Error! Container is missing.”
@sc0ttkclark Thank you for the steps. Just curious though wouldn’t export and re-import be a bit easier than this? Is there a reason you opted not to do that?
Yes this worked for me but having to go through this process for no reason was a real ball ache. So much so that on top of this issue and the SSL issue it made more sense to go back to WAMP.
This seems to look a lot like my problem. I described how I solved it by exporting an empty project replacing the content of the zip file using the id from the container from sites.json and updating the information in local-site.json in the archive then import for Local to add the files and data.
@zitzmrefly thanks, i was like why is that button still disabled?
Why is this still not possible with a simple click on a button? I cannot export the site anymore, because it’s moved and changed, just let me update the path entries. Ridiculous.
@Nick-B
On Macs/~nix computers (and from what I’ve read Winwoes too) directory paths with spaces cannot be read
The default “~Local Sites” path is ridiculous and needs to be changed. If you need to run anything npm yarn gulp etc you get a big fail.
When you have xxGB of uploads and secure dependencies moving the directory is a humungous PITA. That’s the roadblock.