In case somebody would have the same issue, this is the way I resolved it.
1) Installed a second copy of the seqserv gem.
~/.rvm/path/to/original/seqserv
~/.rvm/path/to/copy/seqserv
Two different `config.ru` pointing to different `sequenceserver.conf` will do.
$ pwd
/home/yeban/
$ mkdir ss-foo
$ cd ss-foo
$ cp path_to_ss_installation/config.ru .
$ cp path_to_ss_installation/example.config.yml config.yml
2) replaced sequenceserver.conf with sequenceserver-other.conf in
sequenceserver.rb file:
set :config_file, Proc.new{ File.expand_path('~/.sequenceserver.conf') }
This would be overwritten when you `gem update/install
sequenceserver`, and you will have to redo the above change. So, add
the above line to your `config.ru`s in ss-foo and ss-moo directories
instead:
SequenceServer::App.config_file = '~/ss-foo/sequenceserver.conf'
It's in the FAQ. The line should be added before
`SequenceServer::App.init` in `config.ru`.
Passenger+Apache infers the location of config.ru from the location of
public directory, so let's symlink to the bundled public directory as
well.
$ pwd
/home/yeban/ss-foo
$ ln -s path_to_ss_installation/public
$ cd ..
Just copy around this directory and make required edits to `config.ru`
and `sequenceserver.conf` for other SS instances.
$ cp ss-foo ss-moo
<edits>
3) created 2 separate configuration files, each pointing to corresponding
folder with databases:
~/.sequenceserver.conf : database: /some/folder/with/databases
~/.sequenceserver-other.conf : database: /some/other/folder/with/databases
You can also keep these config files in the ss-foo and ss-moo
directory respectively.
4) resolved each URI correspondingly:
Apache conf:
RackBaseURI /seqserv
RackBaseURI /seqserv-public
DocumentRoot:
/var/www/seqserv => ~/.rvm/path/to/original/seqservpublic
/var/www/seqserv-other => ~/.rvm/path/to/copy/seqserv/public
/var/www/seqserv => ~/ss-foo/public
/var/www/ss-other => ~/ss-moo/public
Sorry for the delayed response. I haven't had much time for SS
lately; college woes :(.