SVN Integration on different servers
Added by José Cano over 14 years ago
Hi,
We have installed Redmine and SVN on different servers. We would like to integrate them automatically, however we don't understand well how reposman.rb works.
- redmine server: 10.1.1.4 // hostname: redmine1
- svn server: 10.1.1.5 // hostname: svn
What we want to achieve is to create the project on the svn server, not on the redmine server that it is what we actually do with the following command:
sudo ruby reposman.rb --redmine-host http://redmine1/ --svn-dir /var/svn --url http://svn/svn/ --owner root --key=WhdJj76wmRWYG6RnJIzF --verbose
What it does not work it is the svn-dir which points to local file system instead to the remote svn server.
There is any workaround to achieve it.
Replies (3)
RE: SVN Integration on different servers - Added by Felix Schäfer over 14 years ago
You seem to have everything right, though you need to run the reposman.rb
command on the server that will be hosting the subversion repositories, i.e. on the server "svn". You just have to copy reposman.rb
over, no need to install a complete redmine on svn.
RE: SVN Integration on different servers - Added by José Cano over 14 years ago
Thanks, it works perfect.
For our purpose (automatic svn creation on project creation), i must configure the script as cron tab, each XX minutes, in order it can be performance automatically.
I think the perfect solution could be to remove/create svn projects on the redmine project creations/deletions. I saw this as a feature request. I wonder whether there is already any implementation/plugin....
Thanks in advance.
lg
RE: SVN Integration on different servers - Added by Felix Schäfer over 14 years ago
Yes, you must run it from cron, and if you run it say every 5 minutes, it will be "near" instant.
Having svn repositories be created on the same machine on project creation is already not trivial, but doable because we have direct access to the machine, creating them on another machine would mean having some sort of access or trigger on the machine the svn repositories should be created on, and I don't think that will ever happen in redmine as it's not in the scope of redmine, sorry. I think this is a functionality that could be achieved through a plugin, but would have to be specifically tailored to your setup.