GithubHelp home page GithubHelp logo

fuckingsftp's Introduction

Usage

在根目录增加连接SSH的配置文件

// ./config.json
{
    "connect": {
        "host": "xxx.xxx.xxx.xxx",
        "port": 22,
        "username": "root",
        "password": "123456"
    }
}

yarn安装依赖后 yarn start启动服务

脚本作用:
将本地项目并发 安装依赖或执行打包 后上传至服务器

脚本执行:<index.js>
选择同级目录中的[mini-program,supplier,mall,boss,provider]目录
选择执行 安装依赖🚌 
选择执行 打包命令📦 <可放开<<<< DEBUG查看执行命令>

将服务器中对应生产目录删除 <sftpConfig.remotePath,await remove(options);>

将打包后的文件上传至服务器SFTP <sftpConfig.remotePath,await copy(options);>

为何要做这个东西

叼毛公司Jenkins没配好
测试说没东西测了让我改一个打包一个上测试环境

为何不把目录结构拆好一点

等你呢

fuckingsftp's People

Contributors

name-q avatar

Watchers

 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.