BenInBlack
09-03-2008, 11:14 AM
Hi
I came from a development environment where I used subversion and once you've used subversion you are hooked. Well in reading through all the posts about how to install it and the possible pitfalls like consuming to much processor time and getting cut off by bluehost. :p
I decided to look on the web for a FTP solution on the web and after a couple of days came up with nothing, so I set out to create my own script.
This solution is for those of you that have a local/inhouse linux server that is running subverion. the script resides in the post_commit script in the hooks folder of your repository.
Synopsis of script:
1. sets variables for paths and user access information
2. get latest changes from last commit and creates file of the changes
3. loops the the new file and parses the operation A=Add,... and file path and file name
4. exports the file from the repo
5. create ftp script for the operation
6. calls ftp that run the new generated ftp script
7. removes the exported file
8. loop to 3.
It is a slower than the direct commit if svn server was on the the bluehost server, but I feel this adheres to the need of both the hoster and the hostee ;)
Please contact me thru PM, Chat or go to my website http://www.webspinr.com
and I will make this script available for free.
Though if some of you want to contribute money, I wont complain. The script is as is. :D
I came from a development environment where I used subversion and once you've used subversion you are hooked. Well in reading through all the posts about how to install it and the possible pitfalls like consuming to much processor time and getting cut off by bluehost. :p
I decided to look on the web for a FTP solution on the web and after a couple of days came up with nothing, so I set out to create my own script.
This solution is for those of you that have a local/inhouse linux server that is running subverion. the script resides in the post_commit script in the hooks folder of your repository.
Synopsis of script:
1. sets variables for paths and user access information
2. get latest changes from last commit and creates file of the changes
3. loops the the new file and parses the operation A=Add,... and file path and file name
4. exports the file from the repo
5. create ftp script for the operation
6. calls ftp that run the new generated ftp script
7. removes the exported file
8. loop to 3.
It is a slower than the direct commit if svn server was on the the bluehost server, but I feel this adheres to the need of both the hoster and the hostee ;)
Please contact me thru PM, Chat or go to my website http://www.webspinr.com
and I will make this script available for free.
Though if some of you want to contribute money, I wont complain. The script is as is. :D