Since I don’t have a much Git experience I’m looking for some viewpoints in regard to my upcoming Git workflow. My projects are mostly rather small (300 visitors a day) and some a little more and I’m the only person working on them. However, I want to implement a flow that make others take part in the development when I need to and it was also important for me to be able to continue work at home, off work, when I feel like it.
-
Local development. I’m usually setting up Wordpress and its database locally. The question is wether or not I should connect to the database on a staging or maybe even live server instead, to save time from moving DB manually later?
-
Theme is pushed to a bare repo on my VPS and I let Jenkins push it to the to the live server. Me or other developing partners can also pull the latest code from VPS to their machine and continue work. Problem: I don’t know if it’s possible in Jenkins to only trigger/push on a specific branch (master working branch).
Do you think this is an OK workflow for small businesses like this? Or is it even overkill?
I’ve considered deploy via FTP in stead, and then via GitHub, but again a problem with Jenkins firing on all branches.