设置 SVN 存储库的基础知识

发布于 2024-12-19 22:15:19 字数 421 浏览 1 评论 0原文

我已经对设置 SVN 存储库进行了一些搜索,但我仍然有点困惑一切在基本层面上是如何工作的。据我所知,通常有 SVN 服务器、临时服务器和生产服务器。

我有一台计算机想用来托管 SVN 存储库。这是一台运行 Ubuntu 的 PC。目前,我们将不使用临时服务器。

这是我的问题:

  • SVN 服务器设置完毕后,可以在我的本地查看吗? 浏览器(当然是在本地主机)或者我需要将其部署到 首先另一个服务器?我希望能够对代码进行一些小的更改, 保存和查看全部在 SVN 上。
  • 我想部署到我的共享托管帐户。有没有一行 您在 CLI 中用于部署的代码,或者这是我需要的脚本 写我自己?
  • 我如何将其设置为可远程访问? VPN?

另外,我应该提到我购买了 Mac 版本。我认为在使用该应用程序时,有一些解决这些问题的捷径。

I've done some searching on setting up an SVN repository but I'm still a bit confused how everything works at a fundamental level. I understand that one typically has the SVN server, a staging server, and the production server.

I have a computer I want to use to host an SVN repository. It's a PC running Ubuntu. For the time being, we're going to go without a staging server.

Here are my questions:

  • Once the SVN Server is set up, can this be viewed locally in my
    browser (at localhost of course) or would I need to deploy it to
    another server first? I'd like to be able to make small code changes,
    save, and view, all on the SVN.
  • I want to deploy to my shared hosting account. Is there a line of
    code you use in the CLI to deploy, or is this a script I would need
    to write myself?
  • How would I set this up to be accessible remotely? A VPN?

Also, I should mention I bought Versions for Mac. I assume there are some shortcuts to these questions in having that app at my disposal.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ゞ记忆︶ㄣ 2024-12-26 22:15:19

我建议您阅读 svnbook 的前两章,以帮助您了解 svn 的功能并不能为你做事。

  • 设置 SVN 服务器后,可以在我的浏览器中本地查看(当然是本地主机)还是需要先将其部署到另一台服务器?我希望能够在 SVN 上进行小的代码更改、保存和查看。

如果您在本地计算机上配置了网络服务器,则可以将其部署在那里并查看您的更改。您基本上使用本地计算机作为临时服务器。但是,svn 无法为您服务您的项目。

  • 我想部署到我的共享托管帐户。您在 CLI 中是否有一行代码用于部署,或者这是我需要自己编写的脚本?

这是您需要自己编写的脚本。

  • 我该如何设置才能远程访问? VPN?

听起来托管 svn 存储库的计算机位于您的 LAN 上,所以是的,需要 VPN 才能远程访问本地资源。如果您将存储库托管在其他地方,那就更容易了。有关详细信息,请参阅 svnbook 的本节

I'd recommend reading the first two chapters of the svnbook to help you get an idea of what svn can and can't do for you.

  • Once the SVN Server is set up, can this be viewed locally in my browser (at localhost of course) or would I need to deploy it to another server first? I'd like to be able to make small code changes, save, and view, all on the SVN.

If you have a webserver configured on your local machine, you could deploy it there and view your changes. You're basically using your local machine as the staging server. But, svn cannot serve your project for you.

  • I want to deploy to my shared hosting account. Is there a line of code you use in the CLI to deploy, or is this a script I would need to write myself?

This is a script you'll need to write yourself.

  • How would I set this up to be accessible remotely? A VPN?

It sounds like the machine hosting your svn repository is on your LAN, so yes, a VPN would be required to access local resources remotely. If you hosted the repository somewhere else, it would be easier. See this section of the svnbook for more information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文