azl397985856 / deploy

deploy your project easily.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

deploy your project easily.

Install

npm i deploy-fast -g

Usage example

deploy  deploy_env [-C || --config] config_file

config_file example:

  {
    test: {
      host: 'http://127.0.0.1',
      ...
    },
    pro: {

    },
    ...
  }

deploy_env should be put into config_file first. for example, you can type deploy test or deploy pro now.

deploy_env example:

  • host: FTP host, default is localhost
  • username:       FTP user,     default is anonymous
  • password: FTP password, default is anonymous@
  • port: FTP port, default is 21
  • remoteDir:       destination
  • path:       local path(regex supported)
  • base:       local base location
  • log: Log function, default is null
  • timeOffset: Offset server time by this number of minutes, default is 0
  • parallel: Number of parallel transfers, default is 3
  • maxConnections: Maximum number of connections, should be greater or

API

deploy --help

Contributing

We welcome all contributions, please submit any ideas as pull requests or as a GitHub issue.

Licence

MIT

About

deploy your project easily.


Languages

Language:JavaScript 100.0%