Set up the Web Server Hook on the Target system

The target for the GitHub web server hook is the Git Deployment Hub. These instructions are about installing and setting this up to receive triggers from GitHub.

1.  The Hub should be up and running. It uses a port that is 10 bigger than the web site. For example, if the main web site is using port 8081 then the Hub be using port 8091. Go to your browser and enter the URL localhost:8091/hub. A page similar to the following should be displayed (which used port 8088 rather than 8081).
The Treeish column should show the current branch - origin/master in this example and the url to post to is provided. This needs to be copied to the GitHub web hook to be used in the step: Connect the GitHub Repository to the Target system.

Note: To see a larger version of this graphic, right click on it and select Open image in new tab.

2.  Set the default git environment to be the currently logged on user so that the same SSH key is used for system processes.
Set the HOME environment SYSTEM variable to the current user's home directory:

a.  Right click on the Windows icon and select System.

b.  Click on Advanced system settings.

c.  Click on the Environment Variables push button.

d.  Under the System Variables list of existing values, click New.

e.  Enter Variable name = HOME and Variable value = the current user's home directory
For example: c:\users\user1.

3.  Run iisreset from the command line

4.  Run the Smoke Test and look at the log. Make sure it has no errors, for example this error indicates that the SSH key cannot be found:

Host key verification failed.

fatal: Could not read from remote repository.


Please make sure you have the correct access rights

and the repository exists.

     If git fetch worked from the command line then the reason it failed could be due to the HOME environment variable being incorrect.