svn 에서 새 프로젝트 저장소 생성하기
다음과 같은 구조로 저장소들이 이미 생성되어 있을 때...
/svn_repositories
+my_project1
+my_project2
아래 명령어를 통해서 새 프로젝트 저장소를 생성합니다.
sudo svnadmin create my_new_project
이 때 주의해야 할 점은 그냥 단순히 svn_repositories 들어가서 mkdir을 하면 나중에 체크아웃 시 다음과 같은 오류를 볼 수 있습니다.
Command: Checkout from https://xxxxxxxxxxxxxxx, revision HEAD, Fully recursive, Externals included
Error: Unable to connect to a repository at URL
Error: 'https://xxxxxxxxxxxxxxxxxxxxx'
Error: Unexpected HTTP status 500 'Internal Server Error' on '/svn/my_new_project'
Error:
Error: Additional errors:
Error: Could not open the requested SVN filesystem
Completed!:
따라서 mkdir을 하면 안되고 svnadmin create 명령어를 이용해서 생성해야 합니다.
그 후에 my_new_project 폴더에 권한을 줍니다.
sudo chown -R www-data:www-data my_new_project
마지막으로 아파치를 재실행합니다.
sudo /etc/init.d/apache2 restart