Automate file uploading to FTP
As being Mobile developer, I had been part of Hybrid team where i got chance to work with Angular team very closely where they write amazing code which called Native layer using Cordova bridge.
In day to day release, Developer has to manually build the angular app and then make the zip file and finally upload to intranet FTP server.
First we take scenario how to upload build to FTP server.
In my case , We have got Apache server hosted where we have to upload build once Angular build is successfully completed.
Pseudocode
A. Write script for angular build
B. Zip the build with name as ‘build.zip’
C. upload build to FTP server using 7z command provided with basic authentication and path on server
That’s it!
Of course, We need to install 7zip and WinSCP locally and set the path in Environment so we can call it from CLI.
Next article , we will cover AWS S3 where we can upload build automatically.