deployment - Git deploy branch to server on commit/push -


I am working on a website and started using version control (GIT) and I have some branches ("Master" and "Development" for now). So I am often committed to "development" and push it into a bitbuck.

What I have to do, our development web-server should always have the latest version of the "developed" branch, uploading it via FTP.

I have full access to this web-server, Windows 2008 R2 (but if necessary, be able to use Linux), then I can install anything that I need.

Any thoughts on how to do this?

I am quite new to the song, please say what I want to do, is just plain mad.

You use a received hook on the remote GIT repository to capture a commitment made in the demand branch And you can deploy this branch (or whatever you want).

The received hook will be run on the remote whenever a push is done. You have to basically find out whether the development branch was pushed or not, if it would develop the branch in your deployment directory.

The post I get is something like this:

  DEPLOYDIR = / directory / you / want / to / deploy / BRANCH = develop while the old Reed Neurev Ref Read; If [[$ ref = ~. * / $ BRANCH $]]; Then "get refinance $ ref." The branch was deployed on $ DEPLOYDIR CD $ Depotheir GIT original GIT reset - House original / $ branch work  

I found this article when the setting to get my post: < / P>


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -