autoftp-autogit
Version:
For fun: A way to automatically deploy to FTP and push Github
20 lines (14 loc) • 412 B
JavaScript
require('dotenv');
//INIT
//Ask for FTP logins
//write a env file
//all the above done
//Ask for list of files to be ignored : .ftpIgnore
//write a file to have everything but ignored files
//write a file that says that everything has been initialized even on second run
//SUBSEQUENT OPENS
//get FTP logins from env
//get list of files to be ignored
//push files to ftp
//give success message