Mercurial 网站 VC 通过 HTTP 或 FTP - 无 SSH
我希望在我的网站上有一个 Mercurial 存储库,以便我可以在更新时进行推送/拉取,但我没有 SSH 访问权限,只有 HTTP 或 FTP。
这可以做到吗?
我怀疑不行,因为我无法在服务器上运行 hg,所以我只能克隆它。
I would like to have a mercurial repository on my website so that I can push/pull as I make updates to it, but I do not have SSH access, only HTTP or FTP.
Can this be done?
I suspect no, since I would not be able to run hg
on the server, so I would only be able to clone it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是的,这绝对可以做到。您不需要 ssh 访问权限来安装 Mercurial 或访问它。您可以在自己的系统上编译它,然后通过 FTP 上传生成的文件。唯一真正的要求是您上传它的网站允许 CGI 应用程序运行。如果没有它,您将仅限于静态http存储库,它不支持推送。
Yeah, this can definitely be done. You don't need ssh access to install mercurial or to access it. You compile it on your own system and then FTP up the resulting file. The only real requirement is that the website to which you upload it allow CGI applications to run. Without that you're limited to the static-http repositories, which don't support pushing.
你是对的。如果您无法安装软件,可以使用 static-http 选项,但它只能支持克隆/拉取。请参阅发布机制的比较。
You're correct. If you can't install software, you could use the static-http option, but it only supports cloning/pulling. See the comparison of publishing mechanisms.
您可以将 hgweb 设置为允许推送。
You can setup hgweb to allow pushes.
我也只使用 FTP 来更新我的网站,但我将所有文件保存在本地 Mercurial 存储库中(您可以使用 bitbucket - 他们有一个免费计划,其中包括 1 个私人存储库和 1 GB 可用空间)。当您需要添加/更新某些内容时,请应用
在本地进行更改,更新 Mercurial 存储库,然后使用 FTP 更新网站。
I'm also using only FTP to update my site, but I keep all the files in a local Mercurial repo (you could use a repository on bitbucket - they have a free plan that includes 1 private repo and 1 GB of available space). When you need to add/update something, apply the
changes locally, update the Mercurial repo, and then use FTP to update the website.