SVNÉÏ´«Ê±Í¬²½µ½·þÎñÆ÷ÆäËüĿ¼
SVNÉÏ´«Ê±Í¬²½µ½·þÎñÆ÷ÆäËüĿ¼
svn/examPro/hooks/Ŀ¼Ï£º
ÄÜ¿´µ½Ò»¶ÑÄ£°æ¹³×ÓÎļþ£¬ÎÒÃÇÐèÒªµÄÊÇpost-commit.tmpl£¬
copyÒ»·Ý£¬ÃüÃûΪpost-commit¡£È»ºóÐ޸ģ»
1.ÉèÖÃÓïÑÔ»·¾³£º
#ÕâÐбȽÏÖØÒª£¬ÐèÒª¸ù¾ÝÄãµÄ·þÎñÆ÷»·¾³Ñ¡ÔñÕýÈ·µÄÓïÑÔ»·¾³£¬·ñÔò£¬Õâ¸öupdate²»»á¹¤×÷£»
#export LANG=zh_CN.UTF-8
export LANG=en_US.UTF-8
2.ÉèÖÃSVN¸üÐÂʱÐèҪͬ²½¸üеÄĿ¼
svn update /alidata/www/examplePro --username yoursname --password yourpwd
ÒÔÉÏÕâÐбíÃ÷£¬µ±svn·þÎñÆ÷°æ±¾ÓиüÐÂʱ£¬Ôòͬ²½¸üе½/alidata/www/examProĿ¼ÏµĶÔÓ¦Îļþ£»yoursname ºÍyourpwdÊÇÄãÔÚsaslÖÐÉèÖõÄÓû§ÃûºÍÃÜÂ룻£¨ÕâÀﻹÊÇÉæ¼°µ½ÁËÃ÷ÎÄ´æ·Å£¬¶Ô´Ë£¬Äã¿ÉÒÔ·ÖÅäÒ»¸öÓû§¶Ôsvn°æ±¾¿âÖ»ÓÐÈ«¾ÖµÄ¶ÁȨÏÞ£©
3.Êä³öÈÕÖ¾£¬±ãÓÚ¸ú×Ù²éѯ
echo `whoami`,$REPOS,$REV >> /home/svnadmin/examPro/hooks/svn_hook.log
ÿµ±ÓиüÐÂʱ£¬¸üÐÂÈÕÖ¾Àï¾Í»á²åÈëÒ»ÌõÓï¾ä£¬±íÃ÷ºÎʱÓйý¸üУ»£¨Õâ¸öÒ²¿ÉÓÃÀ´ÅäÖû·¾³Ê±µ÷ÊÔ£¬ÓÃÀ´²éѯͬ²½ÊÇ·ñÆðЧ£©
ÎÒÃǵÄÅäÖõ½ÕâÀï¾ÍÈ«²¿Íê³É£»
ÏÖÔÚ£¬SVN¾ÍʵÏÖÁË°æ±¾¹ÜÀíµÄ¹¦ÄÜ£¬Í¬Ê±£¬Í¬²½¸üеÄĿ¼ÓÐÀûÓÚ²âÊÔÈËÔ±¼¯³É²âÊÔ£»
¿ª·¢ÈËÔ±ÐèÒª±£Ö¤µÄÊÇ£¬ÈκÎʱºòÇ©Èëµ½svn¿âÖеİ汾ÊÇ¿ÉÔËÐеĴúÂë¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ