Git service deploy hooks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brujah
    Beer Money Baron
    • Jan 2001
    • 22157

    #1

    Git service deploy hooks

    Is anyone using git on a local machine to manage code on your remote servers? Currently doing some research on using hooks to pull changes after a commit to my remote repo.
  • mafia_man
    Confirmed User
    • Jul 2005
    • 1965

    #2
    Originally posted by Brujah
    Is anyone using git on a local machine to manage code on your remote servers? Currently doing some research on using hooks to pull changes after a commit to my remote repo.
    What language are you using? I'm not quite sure what you are trying to do.

    Usually I have a local git repo, push to remote and then pull that remote on my deploy server. This is quite common I believe.

    If you are using Ruby then use Cappuccino and if you are using Python then use Fabric.

    You can use either for any language and then integrate well with git.
    I'm out.

    Comment

    • Brujah
      Beer Money Baron
      • Jan 2001
      • 22157

      #3
      Originally posted by mafia_man
      What language are you using? I'm not quite sure what you are trying to do.

      Usually I have a local git repo, push to remote and then pull that remote on my deploy server. This is quite common I believe.

      If you are using Ruby then use Cappuccino and if you are using Python then use Fabric.

      You can use either for any language and then integrate well with git.
      Currently, I manually pull on the production server after a local push to remote. I was looking at the hooks. I found this info that would work well if you have a repo on the same production server.
      http://toroid.org/ams/git-website-howto

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        i use git on my server to push changes to github, i also have a local git server, which i push to my dedicated (you can do this without running the actual git daemon)
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • livexxx
          Confirmed User
          • May 2005
          • 1201

          #5
          Yes, have been doing so for a while.
          I use a repo like Bitbucket.org that have post commit triggers. This fires a script on a box that deploys to remote machines. Conditional options based on the branch means I can fire to master or branches/staging at will. Their triggers are nice Json so has everything you need in it, they also have hooks for a few others as well.
          Presumably you are aiming for continuous integration, I'm looking to expand the deployments to include phplint, linkchecker and drive some phpUnit tests as well.
          http://www.webcamalerts.com for auto tweets for web cam operators

          Comment

          Working...