I'm using CentOS, Apache, PHP, MySQL and Subversion. I would like to update my deployment code everytime a user commits new code. Can I do that 开发者_如何学Pythonwith a SVN Post-Commit Hook? What would the hook look like?
My repository is under: /var/svn/repository, and my deployment folder is on the same machine under /var/www/myWebAppTest.
I recommend to make /var/www/myWebAppTest a subversion checkout. Then, the post-commit hook could read
#!/bin/sh
cd /var/www/myWebAppTest
svn up
You may have to restart Apache also, if so, add apache2ctl graceful at the end of the script.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论