问题描述
这里是这种情况:
subversion已经安装在服务器中,并且我可以访问服务器中的一个共享帐户(不是root)。共享的托管帐户具有SSH访问权限。
我想创建一个存储库,在其中可以提交正在使用的PHP文件,并且在提交时应在其中查看一个浏览器,这就是为什么我要在public_html中创建存储库文件夹的原因,这是这样做的正确方法吗?服务器的安全性如何?如果不是,那么正确和正确的方法是什么?
服务器信息如下:
cat / proc / version-输出以下内容:
Linux版本2.6.9-89.0.3.ELsmp([email protected])( gcc版本3.4.6 20060404(Red Hat 3.4.6-11))
svn --version-输出以下内容:
svn,版本1.1.4(r13838)
,2009年8月10日编译,23:17:10
- ra_dav :用于通过WebDAV(DeltaV)协议访问资源库的模块。
- 处理'http'模式
- 处理'https'模式
- ra_local:用于访问本地磁盘上存储库的模块。
- 处理文件模式
- ra_svn:模块使用svn网络协议访问存储库。
- 处理'svn'模式
做到这一点的正确方法是使用到SVN的网桥,例如websvn或viewsvn(有多个)。您可以进行设置以将任何存储库公开为网站。
关于创建新存储库的信息,请参见
Here's the situation:
subversion is already installed in the server and I have access to one of the shared accounts in the server (not the root), and this shared hosting account has SSH access.
I want to create a repository where I can commit the PHP files i'm working on, and when I commit it should be viewable in a browser that is why I was thinking of creating the repository folders inside public_html is this a correct way to do this? How about the security of the server? If not what is the correct and proper way to do this?
I would also need help in creating the repository via SSH with Putty. Is there a step-by-step guide online for this?
Server information is as follows:
cat /proc/version - output this:
Linux version 2.6.9-89.0.3.ELsmp ([email protected]) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-11))
svn --version - output this:
svn, version 1.1.4 (r13838) compiled Aug 10 2009, 23:17:10
- ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' schema
- handles 'https' schema
- ra_local : Module for accessing a repository on local disk.
- handles 'file' schema
- ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' schema
The correct way to do this is to use a web bridge to SVN, such as websvn or viewsvn (there are several). You can set these up to expose any repository as a website.
As to creating a new repository, see the SVN "Red-Bean" reference at http://svnbook.red-bean.com/
这篇关于如何正确创建可通过http访问的SVN存储库? (在public_html内部)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!