How to create SVN repository on server?

懵懂的女人 提交于 2019-12-31 08:57:51

问题


How to create SVN repository on server? Although i have found various articles on this but still facing issues while creating repository on my website. Right now i am using assembla as my SVN repository, but want to create my own on my hosting.


回答1:


  1. Create a Repository:

    svnadmin create /svnrepos

  2. Create a SVN User

    vi /svnrepos/conf/svnserve.conf

    anon-access = none

    auth-access = write

    password-db = passwd

    And add users in the format: user = password

    E.g.: tony = mypassword

  3. Import Your Project

    (Assuming you’ve put your project files in /projects/myrailsproject)

    svn import /projects/myrailsproject file:///svnrepos/myrailsproject

  4. Start the SVN Server as Daemon

    svnserve -d

    Done! You should now have an Apache Subversion server running with one project named myrailsproject.

    Try checking it out of the repository:

    svn co svn://192.168.0.2/svnrepos/myyrailsproject

    Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.



来源:https://stackoverflow.com/questions/11810858/how-to-create-svn-repository-on-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!