少于1分钟
https://gohugo.io/hosting-and-deployment/deployment-with-rclone/
If you have access to your web host with SFTP/FTP/SSH/HTTP(DAV), you can use rclone to incrementally deploy your entire Hugo website.
NB: You can remove --interactive
in the commands below once you are comfortable with rclone, if you wish. Also, --gc
and --minify
are optional in the hugo
commands below.
The spoiler is that you can even deploy your entire website from any compatible OS with no configuration. Using SFTP for example:
|
|
The easiest way is simply to run rclone config
.
The Rclone docs provide an example of configuring Rclone to use SFTP.
For the next commands, we will assume you configured a remote you named hugo-www
The above ‘spoiler’ commands could become:
|
|
After you issue the above commands (and respond to any prompts), check your website and you will see that it is deployed.