Guest User

Untitled

a guest
Feb 8th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. var FtpDeploy = require('ftp-deploy');
  2. var ftpDeploy = new FtpDeploy();
  3.  
  4. var config = {
  5. username: process.env.FTPUSERNAME,
  6. password: process.env.FTPPASS,
  7. host: process.env.FTPHOST,
  8. port: 21,
  9. localRoot: __dirname + "/../dist/",
  10. remoteRoot: "/",
  11. include: ['*']
  12. }
  13.  
  14. ftpDeploy.deploy(config, function(err) {
  15. if (err) console.log(err)
  16. else console.log('finished');
  17. });
Add Comment
Please, Sign In to add comment