The **correct environment in security and operation** would be: - **Two different servers**: avoids potential security problems that may exist in an developer environment and that can be harmful to the production environment. - **Two different databases in different server**: for the same reason as before. How to work? First modifications are made in the development environment, if they are correct and everything works well, they are made in the production server. - **Files**: use a repository system, like git, well configured, with .gitignore, and separating development and production in different branches. Maybe this answer will not help you, but what are you proposing isn't safe nor is it a good practice to work in a project. I hope to help you.