Browse Source

use rclone for faster deployments

main
yova 7 months ago
parent
commit
d45a68038d
  1. 6
      README.md
  2. 2
      deploy.sh

6
README.md

@ -9,9 +9,11 @@ git submodule update --init --recursive --remote
hugo serve
```
`$SSH_PRIVATE_KEY` and `$SFTP_USER` need to be set in CI/CD pipelines.
## used stuff
- hugo-bearblog theme: https://github.com/janraasch/hugo-bearblog
- reusable form: c) 2017 Prasanth Janardanan http://reusableforms.com/d/o5/html5-contact-form-send-email
-
- [rclone](https://rclone.org/sftp/) for sftp deployment
## deployment
- `sh deploy.sh`

2
deploy.sh

@ -1,2 +1,2 @@
hugo
lftp -u wntr, sftp://ftp.wntr.org -e "cd site;lcd public;glob -a rm -r *;mirror -R;bye;lcd -"
rclone sync public wntr_org:/site

Loading…
Cancel
Save