rake warehouse:sync in a cronjob?
|
|
I’d really like to automate the warehouse sync thing, and it seems like a cron job might be the easiest way. I can’t get it to work, though. Has anyone figured out how to do this? |
|
|
Have you tried the post-commit hook? |
|
|
Just now, not with much success. Post commit hooks are mildly confusing to me. :) I’ll keep messing with permissions and such to see if I can figure out why it’s not working. |
|
|
I take it you have something like
It depends how you are using your SVN repository how you will need to setup the privileges for the hook, it needs to be executable for anyone who might commit to the repository
Apache mod_dav_svn it depends how you’ve set it up. You will either need to chmod ug+x or chmod ugo+x to get it to work. When it doesn’t work though it does tell you at the end of your commit. If it doesn’t work then login to your server, switch to the warehouse root directory and run
and it should synchronize the changes you’ve made so far. A failure to run the post-commit hook does not constitute a failure to commit so the commit will have been successful. |