Project

General

Profile

Multiple redmines on the same machine

Added by Julien David about 13 years ago

Hi all,

I have a web server running on debian, on which I'd like to host many Redmines. I did not installed the dedian package for redmine because of the version available which is older than the one I need.

I tried to find another solution which could allow me to not duplicate the sources for each instance.

So I used the environnements, but I don't know if it is a viable solution.

I created an environnements file for each instance in config/environnements and declared a new database for each instance in the config/database.yml.

In the Virtual Host definition I added the line :

<VirtualHost *:8080>
ServerAdmin
ServerName virtualhost
DocumentRoot PathToPublicDirectory

RailsEnv environnementName

....

For the moment it works fine, I am hosting three redmines.

what do you think about this solution? Is it correct? Is there another solution for multiples redmines?
Or should I do not share the sources?

If my problem is not clear enough fell free to ask for details.

Thanks for helping me


Replies (4)

RE: Multiple redmines on the same machine - Added by Felix Schäfer about 13 years ago

Julien David wrote:

Is it correct? Is there another solution for multiples redmines? Or should I do not share the sources?

No, no, yes.

2 things are shared between all environments and could come and bite you: the files folder is not environment-safe, and although collisions are unlikely because files are renamed to carry some hash or ID or whatever it is in the filename, it is not guaranteed it won't happen. The other thing are the on-disk caches (I think in the tmp directory) rails uses, for which I'm not sure either if they are environment-safe. Last but not least: the configuration.yml file, or whatever it is called. I haven't updated to the point where this file was introduced, so I can't speak with certainty, but I'm not sure if that file is shared between environments or not.

Long story short: Redmine is not environment-safe, your safest course of action is to install it 3 times. If you are worried about diskspace: don't be, redmine doesn't use that much on its own. If you really care even about that little, use git and clone the extra 2 installations from the first, git can use hardlinks if repositories exist on the same partition, effectively not duplicating common files.

RE: Multiple redmines on the same machine - Added by Felix Schäfer about 13 years ago

Oh, and you might ask why the debian version can host multiple sites on one installation: the version debian packages is patched to comply to debian specifics and to allow to server multiple instances from one installation, stock redmine can not.

RE: Multiple redmines on the same machine - Added by Romain THEVENON about 13 years ago

And does Debian use a "clean" method to host multiple sites ?

RE: Multiple redmines on the same machine - Added by Felix Schäfer about 13 years ago

Don't know, sorry, but I'd suspect it works well seeing it's in the official package :-)

    (1-4/4)