Deploy with GIT via FTP

3

I have read several files that it is possible to deploy via FTP using GIT. I tried to follow several of them but did not succeed. I know there are sites that do all this deploy process like ftploy.com but at the level of knowledge I would like to learn how to do this in the nail .

I'm using windows and Git Bash and I have a repository at bitbucket.org . Could someone give me a light to do this ... can be link of studies or things of the genre ....

    
asked by anonymous 13.05.2015 / 23:39

1 answer

5

There are several ways to deploy using GIT. Although FTP is heavily used, it is not very secure.

> and the GIT does not support this protocol natively :

  

Git can use four main protocols to transfer data: Local, Secure Shell (SSH), Git, and HTTP.

Usually deploy is done through SSH, with a hook post-receive on the server, this tutorial explains in detail the configuration of the remote repository and scripts for deploy .

If you do not have SSH access to the server, you can use Git-ftp , which is a GIT-based FTP client is most recommended for this purpose, as this and this SOen answers.

Sites such as ftploy probably use the webhooks , available in many GIT repositories services such as GitHub, GitLab and Bitbucket.

    
14.05.2015 / 13:26