Local environment with Dropbox

Asked on December 5, 2015 in Development.

I’ve set up a local dev environment using MAMP (I develop on a Mac).

I’ve do most of the work at the office (building a corporate website for my company), but from time to time I work from home. That is why my htdocs folder is saved in my Dropbox.

Everything works well at the office, but when I point the server at home to the Dropbox folder I can’t see any Layers pages. No content at all. As if its just a new installation.

I’ve backed up my pages in the admin panel, but that didn’t help.
Can you please help me with this issue.
I assume I’ll have same problems copying my local site to a production server.

al_x13 Layers User
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on December 7, 2015.

    Hi there,

    Your page content is stored in the MySQL database – is that also being synced to dropbox? The way WordPress works, it needs the entire install to be preserved to function correctly, this means the database, the wp-config.php with the database information, and the wp-content folder. We can’t really troubleshoot it for you from a support standpoint since this is not a Layers problem, we can only give you pointers on moving WordPress and setting up a local environment.   Because you are trying to work on a site from two different locations, I honestly recommend you setup a dev server on a web host you can access anywhere. If you must keep things local at work, you are going to have to do a complete database backup every time and ensure the home install has the exact same file paths (root url) and theme name, as the page data is stored in  the wp options table under the theme install. See the following for some backup advice:

    Backup Content, Layouts & Widgets