Dev server question

    • 39 posts
    January 27, 2020 1:39 PM EST


    We found a bug (most likely in 3rd party code) that is only showing itself now that we have some users with a lot of followers (6,000+).

    Our dev server was initially set up with a new db. 

    We have a copy of our production database from a month or so ago.

    My question is, can we point the dev server to the production database copy? I'm hoping  that doing that plus copying over the file system will be a good enough re-creation of production to allow us to debug and fix without jeopardizing production.

    Has anyone done anything like this before?

    • Moderator
    • 6551 posts
    January 27, 2020 2:24 PM EST

    This would be best asked to the developer who set up your dev site most likely as they know their plugins best. It could impact the plugins if there are any hard coded things in the database. I'm not 100% sure if it would work to point things like that but you could try it, keeping the current one still in the database and just changing the settings file to use the other database. As long as it's not the same database that the main site is using too.