Debian/Redmine: Upgrade multiple instances at once
Posted
by
Davey
on Server Fault
See other posts from Server Fault
or by Davey
Published on 2011-11-17T22:17:22Z
Indexed on
2011/11/18
1:52 UTC
Read the original article
Hit count: 515
I have multiple Redmine instances. Let's call them InstanceA and InstanceB. InstanceA and InstanceB share the same Redmine installation on Debian. Suppose I would want to install Redmine 1.3 on both instances, how would I do that?
After upgrading the core files I would have to migrate the databases. What I would like to know is: can I migrate all databases in a single action?
Normally I would do something like:
rake -s db:migrate RAILS_ENV=production X_DEBIAN_SITEID=InstanceA
for each instance, but this would get tedious if you have 50+ instances.
Thanks in advance!
Edit:
The README.Debian file that's in the (Debian) Redmine package states:
SUPPORTS SETUP AND UPGRADES OF MULTIPLE DATABASE INSTANCES
This redmine package is designed to automatically configure database
BUT NOT the web server.
The default database instance is called "default".
A debconf facility is provided for configuring several redmine
instances. Use dpkg-reconfigure to define the instances identifiers.
But can't figure out what to do with the "debconf facility".
Edit2:
My environment is a default Debian 6.0 "Squeeze" installation with a default Redmine (aptitude install redmine) installation on a default libapache2-mod-passenger.
I have setup two instances with dpkg-reconfigure redmine.
© Server Fault or respective owner