September 13th, 2013, 06:51 AM
Jenkins + github + php
Ok so I am trying to venture into the territory whereby I want to version control my php project.
Someone told me about jenkins + github which sounded like a perfect solution. I have managed to install jenkins, install github plugin, create a dummy github repository but not sure what to do next?
1. Do I push my work to github or Jenkins?
2. How do i use either to update my real site?
what i want/would like to happen is:
local folder -> Jenkins -> git Hub -> live server? is this right way?
do I need ant/java to help out? this sounds too complicated: http://jenkins-php.org/ as i have to install all these packages?
September 13th, 2013, 07:07 AM
if you're new to version control, then I'd do this step by step. Don't start with two tools and some big fat Java setup at the same time.
Why not start with GitHub alone? Once you're familiar with the concept and the workflow, you can add new tools.
Personally, I would not want to have Java on my server. But that's a different story.
September 13th, 2013, 08:09 AM
but could i set up github to "interact with my server" as currently pushing to github only updates the github repository and not my real server?
September 13th, 2013, 08:18 AM
Well, you either have to log in to your server and manually do a git pull (git must be installed). Or you have to use a hook to have the server automatically pull whenever the GitHub repostiry changes.