Giter VIP home page Giter VIP logo

git-get's Introduction

git-get

A tiny web service to receive post commit hooks from github and do a pull

requires

Ruby Git Gems:

  1. git
  2. json
  3. rack
  4. rack-protection
  5. sinatra
  6. thin
  7. tilt

running

Change the configuration to match your environment, it's a hash where the key is the repository name, and the value is the local filesystem directory. The user that the web service is running as must have permissions to the local directory and to the git repository (hint: deploy keys).

if :masteronly is set (default when RAKE_ENVIRONMENT=production) then only master will be pulled, otherwise any branch will be pulled.

Example: nohup ruby git-get > /dev/null 2>&1 &

To run automatically and keep running, I use inittab. For a development environment add the following to inittab (update to your paths): g17:234:respawn:/usr/bin/ruby /home/rmaynard/git-get/git-get.rb > /var/log/git-get.log 2>&1

For a production/master only environment use the shell script in this repo (git-get.sh), update to your paths, then add to inittab: g17:234:respawn:/home/rmaynard/git-get/git-get.sh

If the service dies it will be restarted, when the box is booted, it will be started. It won't fix if the service becomes stuck or wedged, it's not monitoring, but if the service is critical to you, monitor the git endpoint.

git-get's People

Contributors

ephur avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.