Files
tmt-workflow-act/act_project/_tasks/plugins/ftp.js
T
2021-08-23 22:05:46 +08:00

13 lines
372 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Created by littledu on 15/4/28.
*/
var util = require('./../lib/util');
var path = require('path');
module.exports = function(config){
var remotePath = config['ftp']['remotePath'] || "";
var url = 'http://' + path.join(remotePath, config['projectName'], 'dist/html/').replace(/\\/g, '/');
util.log(util.colors.magenta('copy to browser:') + url);
}