so I have the following setup:
localwordpress copy has git repository
- I create changes in my local wordpress copy
- I make
- on my
liveserver I just issue
git pullfrom my git repo
- My local and live server are now sync.
Its the best practice I have at the moment, but ofcourse I have issue with the database sync.
to avoid conflict as much as possible, I will have to get a fresh copy of my live server's database, pray that no one will create a new post or create a new comment. Use that database to develop locally, after development, upload that database to the live.
Its too much hassle.
Is there a method or deployment system or plugin that whatever I develop on my local copy (database change, media upload, etc). will be saved in a single file. Then that single file can be imported in the live server, and there won't be any conflict even if there has been updates in the live server already?
Hope somebody can share their best deployment practices. Thanks!