Created
January 24, 2018 13:21
-
-
Save maciejkorsan/3e7c77959ff551c447193e2d7d5c3a7a to your computer and use it in GitHub Desktop.
deploy.js script for CircleCI GitHub - FTP upload
This file contains hidden or 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