在svn中发布多个工程

简介:

以前用svn只是在服务上发布一个工程,今天需求来了,要求部署两个,以前没有发布两个,只有现琢磨了,不过最后还是成功了,看下文:

为了方便首先切换到svn的bin目录下,我的是这个

 
  1. D:\Program Files\Subversion\bin> 

依次在cmd中执行下列命令

 
  1. mkdir d:\myproject1  
  2. svnadmin create d:\myproject1\project1  
  3. svnserve -d -r d:\myproject1 

在输入完第二条命令时,修改下D:\myproject1\project1\conf下的三个文件的内容(只显示修改过的部分)

authz

 
  1. [groups]  
  2. harryharry_and_sally = harry,sally  
  3. harryharry_sally_and_joe = harry,sally,&joe  
  4. [/]  
  5. * = rw  
  6. ql = rw 

passwd

 
  1. [users]  
  2. harry = harryssecret 
  3. sally = sallyssecret 
  4. ql = ql 

svnserve.conf

 
  1. [general]  
  2. ### These options control access to the repository for unauthenticated  
  3. ### and authenticated users.  Valid values are "write", "read",  
  4. ### and "none".  The sample settings below are the defaults.  
  5. anon-access = read 
  6. auth-access = write 
  7. ### The password-db option controls the location of the password  
  8. ### database file.  Unless you specify a path starting with a /,  
  9. ### the file's location is relative to the directory containing  
  10. ### this configuration file.  
  11. ### If SASL is enabled (see below), this file will NOT be used.  
  12. ### Uncomment the line below to use the default password file.  
  13. password-db = passwd 
  14. ### The authz-db option controls the location of the authorization  
  15. ### rules for path-based access control.  Unless you specify a path  
  16. ### starting with a /, the file's location is relative to the the  
  17. ### directory containing this file.  If you don't specify an  
  18. ### authz-db, no path-based access control is done.  
  19. ### Uncomment the line below to use the default authorization file.  
  20. authzauthz-db = authz  
  21. ### This option specifies the authentication realm of the repository.  
  22. ### If two repositories have the same authentication realm, they should  
  23. ### have the same password database, and vice versa.  The default realm  
  24. ### is repository's uuid.  
  25. realm = My First Repository  

修改完三个文件后,再执行

 
  1. svnserve -d -r d:\myproject1 

用同样的方法,在myproject1中建立project2,完成后,打开myeclipse,在svn中新建刚才的两个工程svn url为

 
  1. svn://localhost/project1  
  2.  
  3. svn://localhost/project2  

提示输入用户名和密码后,给每个工程添加一个项目,成功后如图

这样以来,在一个svn中就成功的创建了两个或者多个工程了。



本文转自sucre03 51CTO博客,原文链接:http://blog.51cto.com/sucre/392617,如需转载请自行联系原作者

相关文章
|
测试技术 Linux 数据安全/隐私保护
linux下svn(subversion)服务端添加工程及配置权限
linux下svn(subversion)服务端添加工程及配置权限 转载请注明源地址:http://www.cnblogs.com/funnyzpc/p/9010507.html   此篇我只是将所做过的事情记录下来,原想搜一篇文章保存呢,结果发现事实上并没有一篇合适的博文供参考,遂,自给自足,以丰衣足食嘛。
1298 0
|
Java 应用服务中间件 Apache
某马-某淘商城的day01--->分析,工程搭建,tomcat插件启动工程,svn,反思
-1:为什么还要写某马的某淘商城呢?   答:万物更新,季节交替。新人总把旧人换。所以呢,前人写了N多遍的东西,我们依旧在学,所以下决心写某马的某淘商城。(也因为在学校还没找工作,所以找个相对长期的事情做~~~)。
1353 0
|
PHP
创建SinaSAE云账号创建和发布基于SVN代码管理的PHP空工程
1、使用Sina微博账号登录,进入【新浪云控制台】 2、选择【云应用SAE】界面,选择【创建新应用】 3、点击【继续创建】,进入应用信息编辑界面     依次编辑“二级域名”“应用程序名”,再点【运行环境】中的【PHP空应用】,再点左下角的【创建应用】完成应用创建。
1032 0
|
安全 PHP 数据安全/隐私保护
本地使用SVN编辑发布远程SAE工程
一、通过SVN本地修改远程仓库代码1、复制SVN仓库地址 2、在本地PC上开一个空目录,右键找到SVN Checkout 在SVN地址栏输入仓库地址 3、输入SAE的安全邮箱和安全密码下载远程仓库工程到本地。
1105 0
gradle工程环境搭建---从SVN上导出项目源码
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bitree1/article/details/50040451 首先添加用户...
1199 0
|
1月前
|
存储 网络协议 Ubuntu
Linux环境下的SVN服务器搭建并结合内网穿透实现远程连接
Linux环境下的SVN服务器搭建并结合内网穿透实现远程连接
|
3月前
|
Ubuntu 安全 网络安全
百度搜索:蓝易云【Ubuntu系统SVN服务器搭建教程】
现在,你已经成功在Ubuntu系统上搭建了SVN服务器。其他用户可以通过SVN客户端连接到你的SVN服务器,进行代码版本管理和协作开发。注意,为了安全起见,建议配置SSL加密以保护数据传输。
39 1
|
3月前
|
Apache 项目管理 数据安全/隐私保护
【cpolar】TortoiseSVN如何安装并实现公网提交文件到本地SVN服务器
【cpolar】TortoiseSVN如何安装并实现公网提交文件到本地SVN服务器
46 0
|
7月前
|
IDE Linux 开发工具
从旧服务器迁移svn到另一台新服务器中(linux系统)|遇到诸多坑,已解决
从旧服务器迁移svn到另一台新服务器中(linux系统)|遇到诸多坑,已解决