-
-
Save hatemhosny/8ac23efaddce3a5dac8b0a166487ae5a to your computer and use it in GitHub Desktop.
deploy.js script for CircleCI GitHub - FTP upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FtpDeploy = require('ftp-deploy'); | |
var ftpDeploy = new FtpDeploy(); | |
var config = { | |
username: process.env.FTPUSERNAME, | |
password: process.env.FTPPASS, | |
host: process.env.FTPHOST, | |
port: 21, | |
localRoot: __dirname + "/../dist/", | |
remoteRoot: "/", | |
include: ['*'] | |
} | |
ftpDeploy.deploy(config, function(err) { | |
if (err) console.log(err) | |
else console.log('finished'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment