설정파일을 cvs에서 제외하려면?

lacovnk의 이미지

config.php에 DB접속관련 정보가 있는데, 이를 어떻게 배포하면 좋을까요?

1. cvs 저장소에는 stub config.php가 존재한다
2. 사용자가 checkin, update할 때에 저장소의 config.php를 건드리지 않는다.

cvsignore 파일이 있는데, 이건 cvs를 아예 사용하지 않는다.. 는 선언인 것 맞지요? 음음..

실수로 checkin 해버려서 서버의 계정이 cvs에 올라가면 난감한 일인데;; ㅎㅎ

lacovnk의 이미지

http://subversion.tigris.org/faq.html#ignore-commit

Quote:
I have a file in my project that every developer must change, but I don't want those local mods to ever be committed. How can I make 'svn commit' ignore the file?

The answer is: don't put that file under version control. Instead, put a template of the file under version control, something like "file.tmpl".

Then, after the initial 'svn checkout', have your users (or your build system) do a normal OS copy of the template to the proper filename, and have users customize the copy. The file is unversioned, so it will never be committed. And if you wish, you can add the file to its parent directory's svn:ignore property, so it doesn't show up as '?' in the 'svn status' command.

이런 꽁수가 -_-;;;;