GithubHelp home page GithubHelp logo

chayn1k / mywebhook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mexitek/mywebhook

0.0 2.0 0.0 612 KB

A custom git web hook that allows you to automatically sync your repos with Github or Bitbucket

Home Page: http://mexitek.github.com/myWebHook

PHP 100.00%

mywebhook's Introduction

myWebHook

A custom git web hook that allows you to automatically sync your repos with Github or Bitbucket. The web hook attempts to update a folder with the same name of the branch, but this can be configured easily.

Concept

When using topic branching you can easily designate certain branches to represent application environments or locations. Imagine a branch dedicated to your staging, development or production environment.

You can also associate a branch with multiple folders

Installation

Simply download place the file myWebHook.php in your www or public_html directory on your hosting account.

If you can SSH into your webhost and navigate to your public_html/ or www/ directory, simply run: wget http://rawgithub.com/mexitek/myWebHook/master/myWebHook.php

Customization

Edit the first couple of variables in myWebHook.php. You can choose to change the name of your main git remote, turn on web hook logs or associate a branch with custom folder paths.

// Your remote name
$remote = "origin";

// Aliases for branches and directories
$aliases = array(
  "master"  => array( "path/to/production" ),
  "staging" => "path/to/staging",
  "clients" => array( "client1","client2","client3","client4" )
);

// Do you want a log file with web hook posts?
$log = FALSE;

Activate on Github

Activate on BitBucket

mywebhook's People

Contributors

mexitek avatar

Watchers

Pavel Tchaikovsky avatar James Cloos 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.