SVN Setting

SVN Setting

참조 : http://playgroundblog.tistory.com/86

SVN 설치여부

# svnserve —version

SVN REPOSITORY 추가생성

#svnadmin create —fs-type fsfs PROJECTNAME

#chmod -R g+ws PROJECTNAME

# cd PROJECTNAME/conf

#vi svnserve.conf

anon-access = none

auth-access = write

password-db = passed

authz-db = author

vi passwd

[users]

userid = passw0rd

vi author

[/]

userid = rw

SVN 설정

# vi /etc/sysconfig/svnserve

OPTIONS=“—threads —root /svn”

SVN 서비스 기동

#service svnserve start

SVN 서비스포트 : 3690

방화벽이나 potable 등에서 수정을 통해 외부 포트 오픈 해줘야 함.

#vi /etc/sysconfig/iptables (CentOS6)

#vi /etc/firewalld/zones/public.xml

<port protocol=“tcp” port=“3690” /> //추가

</zone>

#firewall-cmd —reload

# svn checkout file:///svn/PROJECTNAME /home/DIRECTORY

자동으로홈디렉토리업데이트및소유자권한으로변경

#cd PORJECTNAME/hooks

#vi post-commit

#!/bin/sh

export LANG=en_US.UTF-8

svn update /home/DIRECTORY

chown -R OWNER:GROUP /home/DIRECTORY

#chmod 777 post-commit