Deploy with GIT via FTP

Asked

Viewed 1,423 times

3

I read several files that it is possible to deploy via FTP using GIT. I tried to follow a few of them but they were unsuccessful. I also know that there are websites that make all this deployment process like the ftploy.with however, 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 on bitbucket.org. I wonder if someone could give me a light to do this... could be link studies or things like....

1 answer

5


There are several ways to do deploy using GIT. Although FTP is widely used it is not very safe and GIT does not support this protocol natively:

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

Usually the 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 the scripts for deploy.

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

Sites like ftploy probably use webhooks, available in various GIT repository services such as Github, Gitlab and Bitbucket.

  • I’ll take a look at how it works, anyway vlw.... if it works out some of the solutions I come back here to tell you which one I used..

  • Man..... thanks.... only now I could test... life is racing. I used GIT-FTP and it worked... I did the installation on WIN7 with GIT BASH... and I used this http://anantgarg.com/2013/09/25/git-ftp-for-windows/ for the process... super easy is practical... as it is for end of studies I’m not worried about security yet. VLW Cara!!!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.