安裝
npm install --save hexo-deployer-ftpsync
配置
deploy:
type: ftpsync
host: xx.xx.xx.xx
user: bxu123123
pass: @xx11123
remote: /htdocs/
port: 21
connections: 1
verbose: false
部署
hexo deploy
報錯
INFO Deploying: ftpsync
Setup
Setup complete.
Collecting
ftp.ls failed.
Collection failed.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: 530 Please login with USER and PASS.
思考、解決
通過查閱相關資料,發現可能是登錄問題。
但是用戶名和密碼都沒錯。發現密碼中含有@
符號。於是乎進行轉義\@
.還是不行。
只得嘗試加單引號。竟然成功了。
pass: '@xx11123'