Issue Summary
I regularly work on two different computers and have been trying to rely on LocalWP to work on sites on both computers. I thought this would be possible because, as indicated in threads like this (Location of database files and software), it’s my understanding that LocalWP is supposed to save out the database to [site directory]/app/sql/local.sql, and when the site is launched, it uses that sql file to rebuild the database.
However, in my exprience, that’s not what happens at all. The SQL database is kept in the user Library, and while it might save a copy of the database to the sql file, it doesn’t load it from that file when it’s relaunched.
As a result, if I work on a site on one computer, shut down the site, then move to another computer, while the site files might be correct, the database will be whatever it was when I last worked on the site on that computer.
Troubleshooting Questions
What is this expected behavior for LocalWP?
Should the site files be completely independent of the computer it’s being worked on, or should it be defaulting to the existing database files save in the local user directory?
Replication
Set up a site on one computer on an external drive.
Move that drive to another computer, archive and import the existing directory on a second comptuer.
Make a database change (alter page content).
Move the drive back to the first computer, the page content will not have the database change.
System Details
-
Which version of Local is being used? 6.6.0
-
What Operating System (OS) and OS version is being used? MacOS Ventura (13.0.1)