Closed nnnewb closed 3 years ago
Okay, my fault.
I misunderstand the square brackets. It means OPTIONAL, not array.
This configure works for me.
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: sftp
host: myhost.com
user: myuser
pass: ""
remotePath: /var/www/html/myhost.com/blog
port: 22
privateKey: ~/.ssh/id_rsa
Still, the usage documents are too vague, should clarify it.
Thanks for the feedback! note that the documentation you are referring to is on a different project and uses the square bracket nomenclature for all optional parameters, I'm sure they would welcome any PRs making the docs more clear. Closing this since it's not related to this code base in particular.
hexo deploy output
hexo-deployer-sftp version: v0.4.1
Hexo version:
the usage documents are too vague, don't known how to fix it.