I have set up automate build on Visual Studio Online and able to get the artifacts under builds. Now i want to deploy the artifacts on FTP. Since my website is hosted on GoDaddy and they provided me FTP account.Can anyone please help me out to set up this.
问题:
回答1:
This can be done with the standard build step called "cURL Upload Files", which can be found in Utility section. It claims to support many protocols, including FTP. The following screenshot might give you an idea of how to configure it:
回答2:
1) FTP :
Connecting to GoDaddy using FTP is a big issue. I suspect that this is mainly due to the expired TLS certificate. I dropped FTP setup idea after failing to connect numerous time and also have read few articles that FTP protocol is not that reliable, error prone and SSH was a suggested alternative.
2) cURL
Using cURL based uploader might work. But for a huge project with too many files will result in ENAME Too Long error (i.e., list of files willl be created as a lengthy string and set as an argument which results in the error).
3) Web Deploy:
Since web deploy service seems to work from visual studio IDE from the local/development machine to Godaddy servers, we can be sure that it will work from Visual Studio based build template on VSTS hosted environment too.
Well this was the only method that worked for me.
You can check out the steps and configuration detailed in the article - HOW TO SETUP VSTS CONTINUOUS DEPLOYMENT FOR GODADDY