Can I get an overview of Revisr and git flow in WP
-
Before I start using Revisr I wanted to understand the flow of how it works with wordpress and git. We currently use git for source control so we’re familiar with it overall, but I’m unclear how it will work in a WP environment.
My environment:
Bitbucket account
Host- shared website on bluehost installed w/ WP 4.2.2 and Mysql
– I installed the latest version of git and made the wp-config.ssh update to point to it’s location (/home1/USER/bin/git)
1. Question: Revisr Settings/Help is still showing the old version/location of git, how do I get WP to re-read the wp-config file? When I ssh into my account, do a which git, it shows the new location ~/bin/git but in Help it still shows /usr/bin/git which is bluehosts default location.Assuming I get that straightened out, what is the general sequence/flow of how to use Revisr + git?
Do I first do a “git init” in the main directory for the website as it currently is running to get a baseline? If so, that doesn’t grab the database, but I think after the init I can use Revisr?
After the init, I’m thinking I should push the code to bitbucket for a new repository. How do I include the database as part of that?
Now lets say I have a repository of the site and the DB, and I use that to create a developers environment will all the same code. Now I have 3 locations with the same code.
From there, the developer will be making changes to the site, using git/revisr to update bitbucket I assume. Then, when all looks good, I shuld be able to initiate a pull from the production website from bitbucket using Revisr to pull in the new site/db code, right?
If something goes wrong, I will somehow be able to roll back to the previous version of the site/db using Revisr then by somehow specifying a hash or tag?
As you can see, I’m just trying to figure out how WP, Revisr, Mysql, git, bitbucket and a developer can all work together for version control. Any answers, comments, guidance would be appreciated.
Thanks
- The topic ‘Can I get an overview of Revisr and git flow in WP’ is closed to new replies.