FTP deployer plugin for http://hexo.io/
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

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