#1
  1. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,861
    Rep Power
    368

    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?
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,904
    Rep Power
    1045
    Hi,

    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,861
    Rep Power
    368
    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?

    :so confused:
  6. #4
  7. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,904
    Rep Power
    1045
    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.

IMN logo majestic logo threadwatch logo seochat tools logo