为个人项目自托管 SVN 存储库
我想为个人项目(网页游戏)自行托管一个 SVN 存储库,但我不确定应该在哪里托管它。由于我是唯一的开发者,它不会收到很多流量。以下是我看到的选项:
- 使用我的一台个人计算机
- 使用为项目运行 Web 服务器的 VPS
将其托管在 VPS 上对我来说最有意义。这是正确的选择还是使用本质上是生产服务器进行代码托管是否存在陷阱?
I'd like to self-host an SVN repository for a personal project (web game), but I'm unsure of where I should host it. It wouldn't receive a lot of traffic as I am the sole developer. These are the options I see:
- Use one of my personal computers
- Use the VPS running the web server for the project
Hosting it on the VPS makes the most sense to me. Is this the right choice or are there pitfalls to using what is essentially a production server for code hosting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您有一台始终可以通过 ssh 访问的计算机,那将是我的首选。然后我会回退到像 Apache 和 mod_dav 这样的
webdav
实现。这需要更多的设置,并使其可公开访问,除非您保护它。我猜你不太可能频繁地投入,给你的 VPS 带来任何压力,但如果你有另一台可用的机器,我可能会选择另一台机器。If you have a machine that's always accessible via
ssh
, that would be my first preference. I'd then fallback to awebdav
implementation like Apache and mod_dav. This entails quite a bit more setup and makes it publicly accessible unless you secure it. I'd guess it's unlikely you're going to be committing sufficiently often to put any stress on your VPS but I'd probably choose a different machine if you have another available.我在闪存盘上使用了 SVN 存储库。
诀窍是在您使用的每台电脑上保留相同的驱动器号。
尽管有点慢,但效果就像一个魅力。
I used the host a SVN repo on a flash disk.
The trick is to keep the same drive letter on every PC you use it.
Worked like a charm, albeit a bit slow.
有一些事情需要考虑:您是否需要网络(或其他远程)访问?如果您想要的只是跟踪您的更改,那么您可以
所有有价值的 VCS 都具有远程访问功能,但有些在您不需要时会更好。
There are some things to think about: do you need web (or other remote) access? If all you want is to keep track of your changes then you can
All VCSs worth a damn have remote access, but some are just better when you don't need it.