Giter VIP home page Giter VIP logo

fis3-deploy-ftp-x's Introduction

fis3-deploy-ftp-x

fis3 ftp deploy plugin,将代码通过ftp的方式上传到ftp服务器,支持include/exclude选项,支持不同的路径上传到不同的ftp服务器。

本插件参考了fis-deploy-ftp插件的代码,进行了一些修改。

使用方法

下面的配置满足的需求是:

要把所有文件除了/img/下的文件,通过ftp部署到xxx.xxx.xxx.1的远程路径/remote/dir/to/upload/dir1/下面; 然后把/img/下的文件通过ftp部署到xxx.xxx.xxx.2的远程路径/remote/dir/to/upload/dir2/下面;

fis.match('*', {
    deploy: [
        fis.plugin('ftp', {
        	//是否打印调试信息的开关
          //'console':true,
          //ftp远程目录
          remoteDir : '/remote/dir/to/upload/dir1/',
          //排除不上传的文件路径
          exclude:['/img/'],
          //需要上传的文件路径,一般情况不用配置include,默认是全部
          //include:['/js/','/css/'],
          //ftp的配置信息
          connect : {
              host : 'xxx.xxx.xxx.1',//ftp1 ip 
              port : '21',//ftp端口
              user : 'ftp username',
              password : 'ftp password'
          }
        }),
        fis.plugin('ftp', {
            //'console':true,
            remoteDir : '/remote/dir/to/upload/dir2/',,
            include:['/img/'],
            connect : {
                host : 'xxx.xxx.xxx.2',,
                port : '21',
                user : 'ftp username',
              	password : 'ftp password'
            }
        })
    ]
});

fis3-deploy-ftp-x's People

Contributors

winniebear avatar

Watchers

James Cloos avatar 罗新芳 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.