환경설정 수정하기. (CVS경로 설정)
satbench:~ sangwook$ vi .profile
PS1='\h:\w \u\$ ';
CVS_RSH=ssh
CVSROOT=:ext:sangwook@localhost:/home/cvs
export CVSROOT
export CVS_RSH
CVS에서 체크아웃하기.
satbench:~ sangwook$ cvs checkout cpuusage
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is *********************************
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
sangwook@localhost's password:
cvs checkout: Updating cpuusage
U cpuusage/.classpath
U cpuusage/.project
U cpuusage/build.properties
U cpuusage/build.xml
... 등등등 파일들을 체크아웃 함.
톰캣에 deploy하기.
satbench:~ sangwook$ ls
cpuusage cpuusage_daily.py cpuusage.py create_db.sql
satbench:~ sangwook$ cd cpuusage
satbench:~/cpuusage sangwook$ ls
build build.properties build.xml CVS dist src WebContent
satbench:~/cpuusage sangwook$ ant undeploy
Buildfile: build.xml
Trying to override old definition of datatype resources
undeploy:
[undeploy] OK - Undeployed application at context path /cpuusage
BUILD SUCCESSFUL
Total time: 0 seconds
satbench:~/cpuusage sangwook$ ant deploy
Buildfile: build.xml
Trying to override old definition of datatype resources
prepare:
compile:
dist:
deploy:
[deploy] OK - Deployed application at context path /cpuusage
BUILD SUCCESSFUL
Total time: 0 seconds
satbench:~/cpuusage sangwook$
cvsdeploy.sh 쉘 스크립트
satbench:~ sangwook$ cat cvsdeploy.sh
#!/bin/bash
cvs update cpuusage
cd cpuusage
ant undeploy
ant clean
ant clean-work
ant deploy
댓글을 달아 주세요