lc-update-server

1.0.2 • Public • Published

lc-update-server

A package simplify your update server routine job.

Update process

Usage

Create a config file: us.config.js in your project root directory.
The content will look like this:

const config = {
    server: {
        host: '172.16.176.81',
        port: 22, // default 22
        username: 'test',
        // It will store it in plain text.
        // You have to make sure this security.
        password: 'webtestold',
    },
    upload: {
        // Will find the package in this directory
        localPath: './target/',
        // Will find the first match file
        fileRex: /^cc-image-news.*\.zip$/,
        // This directory will be cleaned before upload package.
        // You can input a relate path with remotePath.
        // If you leave this empty, nothing will be cleaned
        cleanPath: './resources/cc/h5/cc-image-news/',
        // The package will put in this directory
        remotePath: '/data/goldencoinstatic/',
    }
};
module.exports = config;

Dependencies (3)

Dev Dependencies (5)

Package Sidebar

Install

npm i lc-update-server

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

19.9 kB

Total Files

15

Last publish

Collaborators

  • elantion