How to split a website in development and production version?

Hello.

A: a Wordpress site which is based on a DigitalOcean server.

The challenge is how to organize such a system, when we have 2 versions of the site, the first is on the main domain (production), the second - on technical (development). Actually the most important question in the interaction of these versions: it is necessary to change with the tech version is easily transferred to the main.
Understand that it is necessary to dig in the side of version control systems, but much experience with them are not.

Also a huge issue is control not only valovoi system, but also mysql database.

Help, at least in what direction I look
July 8th 19 at 12:07
2 answers
July 8th 19 at 12:09
Solution
git + CI + database migration
With gitом I understood, but what to do with the database? Can prompt any specific tools? - shanel10 commented on July 8th 19 at 12:12
July 8th 19 at 12:11
Solution
just the code in git and put the two sites are raising two brunches

Find more questions by tags Hosting