How to use ubuntu redmine package with multiple instances and thin?

Asked by Snaky Love

Hi, sorry for kind of crossposting this https://answers.launchpad.net/ubuntu/+source/redmine/+question/130916

How can I use the multiple instances feature of the ubuntu redmine package with this thin package?

I do not see a way to have multiple X_DEBIAN_SITEID env vars with the existing init.d script - it would be great, if this package could be harmonized with the redmine package!

Thanks for your attention!
Snaky

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu thin Edit question
Assignee:
No assignee Edit question
Solved by:
Snaky Love
Solved:
Last query:
Last reply:
Revision history for this message
Snaky Love (snakylove) said :
#1

Jérémy kindly answered my question here:
http://www.redmine.org/boards/1/topics/16647
The solution is to include a ruby file in the thin /etc/thin/redmine-instance.yml file!

Looks like this then:
redmine-myinstance.yml:
require: [/etc/thin1.8/redmine-myinstance.rb]
environment: production
servers: 2
daemonize: true
chdir: /usr/share/redmine/
user: www-data
group: www-data

redmine-myinstance.rb:
ENV['X_DEBIAN_SITEID'] = 'myinstance'