Git Product home page Git Product logo

hexo-deployer-jsftp's Introduction

hexo-deployer-jsftp

FTP deployer plugin for http://hexo.io/

Usage

Install

npm install hexo-deployer-jsftp --save

Enable

Set deploy.type to ftp in _config.yml.

deploy:
  type: ftp

Configure

Add connection and root to deploy in _config.yml.

deploy:
  type: ftp
  connection:
    host: <ftp host>
    port: <ftp port>
    user: <ftp user>
    password: <ftp password>
    ...
  root: <path/to/your/blog/on/the/server>

Connection properties:

  • host - string - The hostname or IP address of the FTP server. Default: 'localhost'

  • port - integer - The port of the FTP server. Default: 21

  • secure - mixed - Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990) Default: false

  • secureOptions - object - Additional options to be passed to tls.connect(). Default: (none)

    • Additionally you can add pfxPath, keyPath, caPath and certPath to specify the path of the file that contains data. This parameters are overrides existing ones.
  • user - string - Username for authentication. Default: 'anonymous'

  • password - string - Password for authentication. Default: 'anonymous@'

  • connTimeout - integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000

  • pasvTimeout - integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000

  • keepalive - integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000

Usage

Type deploy command in console.

hexo deploy [host=<ftp host>] [port=<ftp port>] [user=<ftp user>] [password=<ftp password>]

Command line parameters overrides the default configuration.

Disable

Remove ftp value from deploy.type in _config.yml.

deploy:
  type:

Update

Execute the following command.

npm update

Uninstall

Execute the following command. Don't forget to disable the plugin before uninstalling.

npm uninstall hexo-deployer-jsftp

hexo-deployer-jsftp's People

Contributors

paudr avatar

Watchers

 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.