在没有SSH的情况下安装Hugo网页引擎。

huangapple go评论77阅读模式
英文:

Installing Hugo web engine without SSH

问题

你可以尝试使用其他方式来部署Hugo。基本的托管服务可能不包含安全外壳访问(secure shell access),但你可以考虑以下替代方法:

  1. 使用FTP(文件传输协议):许多托管服务提供FTP访问,你可以使用FTP客户端将Hugo生成的静态文件上传到服务器上。

  2. 使用Git部署:如果你的托管服务支持Git,你可以将Hugo项目作为Git仓库,并使用Git命令将更改推送到服务器上。

  3. 使用云存储服务:将Hugo生成的静态文件上传到云存储服务(如Amazon S3、Google Cloud Storage等),然后通过配置域名指向云存储上的文件。

这些方法可以帮助你在没有安全外壳访问的情况下成功部署Hugo网站。

英文:

I use a basic hosting service that does not include secure shell access, Is there another way that I can deploy Hugo?

答案1

得分: 3

在运行hugo server进行本地网站开发之后,你需要再次运行hugo命令,但这次不带server命令,也不带--watch-w选项,以重新构建你的网站。

然后,你可以通过将public/目录(通过FTP、SFTP、WebDAV、Rsync、git push等方式)复制到你的Web主机上来部署你的网站。

由于Hugo生成的是静态网站,所以你的网站可以托管在任何地方,就像最基本的主机提供FTP访问一样。更多信息请参阅Hugo使用指南

英文:

> After running hugo server for local web development, you need to do
> a final hugo run without the server command and without --watch or
> -w to rebuild your site.
>
> then, You may deploy your site by copying the public/ directory (by
> FTP, SFTP, WebDAV, Rsync, git push, etc.) to your web host.

Since Hugo generates a static website, your site can be hosted anywhere as in the most basic host provide FTP access. For more please see Using Hugo

huangapple
  • 本文由 发表于 2015年10月26日 03:31:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/33334122.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定