From 98bfa267a33d720cc881e4b7dd7ee31186b494e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sun, 25 Apr 2021 11:49:50 +0800 Subject: [PATCH] =?UTF-8?q?deploy:=E5=8A=A0=E5=85=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=BD=BF=E7=94=A8rsync=E9=83=A8=E7=BD=B2=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 10 +++++++++- package.json | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 93598a8..365865f 100644 --- a/_config.yml +++ b/_config.yml @@ -102,7 +102,15 @@ theme: grid # Deployment ## Docs: https://hexo.io/docs/one-command-deployment deploy: - type: "" + type: rsync + host: 39.105.39.8 + user: root + root: /var/www/blog/ + port: 22 + delete: true + args: + verbose: true + ignore_errors: true # Plugins Configurations marked: diff --git a/package.json b/package.json index 75f58d3..3d59f28 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "dependencies": { "hexo": "^5.0.0", "hexo-admonition": "^1.1.2", + "hexo-deployer-rsync": "^1.0.0", "hexo-filter-fenced-code": "^1.0.2", "hexo-filter-mathjax": "^0.6.3", "hexo-filter-plantuml": "^2.1.0",