the moment I'm thinking of keep everything under wp-content in version control . So I can do a git clone on the staging server and have everything I've adjusted there.
The other thing I would have to do is to move the databse from my local environment to my staging environment. Therefore I could think of different solutions:
* Use a WordPress Plugin to sync Databases
* Because I'm using docker maybe to rsync the files from the database to staging (not sure if this will work how I expect it)
* Dump the database and import it
I'm just wondering what is considered best practice or how do you guys are solving this?
Well, i think you should control the database syncing with bash script from a .sql file also generate the wp-content and resolve any dependencies. I believe you should not put the uploads folder into a common git repository, but with LFS it could be. If you dont like this propose, mabe if you have migration files and seeding files can be more usefull
Обсуждают сегодня