cool, I wasn't sure if Vlad pushed this or not, seems he did :)
--
L
On 12.6.2012 20:36, Huiliang Zhang wrote:
The current OpenGrok script already supports this configuration. It is shown as:
WEBAPP_CONFIG=""
if [ -n "${OPENGROK_WEBAPP_CFGADDR}" ]; then
WEBAPP_CONFIG_ADDRESS=${OPENGROK_WEBAPP_CFGADDR}
if [ "${OPENGROK_WEBAPP_CFGADDR}" == "none" ]; then
WEBAPP_CONFIG_ADDRESS=""
fi
else
WEBAPP_CONFIG_ADDRESS="localhost:2424"
fi
if [ -n "${WEBAPP_CONFIG_ADDRESS}" ]; then
WEBAPP_CONFIG="-U ${WEBAPP_CONFIG_ADDRESS}"
fi
Best Regards,
Huiliang Zhang
-----Original Message-----
From: Lubos Kosco [mailto:lubos.ko...@oracle.com]
Sent: Tuesday, June 12, 2012 11:33 AM
To: Huiliang Zhang
Cc: opengrok-discuss@opensolaris.org
Subject: Re: [opengrok] How to set up 2 opengrok instances on 1 machine?
On 12.6.2012 19:46, Huiliang Zhang wrote:
Thanks. I found the places to configure listener port in web.xml and OpenGrok
script. The problem is solved.
If you have changes to OpenGrok script as a generic patch(so more people
can use them and configure), I'd be interested to get it into upstream ;)
thnx
L
Best Regards,
Huiliang Zhang
-----Original Message-----
From: opengrok-discuss-boun...@opensolaris.org
[mailto:opengrok-discuss-boun...@opensolaris.org] On Behalf Of Lubos Kosco
Sent: Tuesday, June 12, 2012 12:28 AM
To: opengrok-discuss@opensolaris.org
Subject: Re: [opengrok] How to set up 2 opengrok instances on 1 machine?
There is one more thing regarding listener for configurations - so I
suppose the second webapp starts the listener on same port as first one
(they race which one allocates it)
so once indexer is done it tries to send new config to webapp - which
might confuse the webapp (I think this is what happens to you)
in trunk (and possibly 0.11.1) there are changes where you can tell
OpenGrok script to SKIP sending new config to webapp (or configure new
ports? - not sure if this is in, if not, you can try to add it - it's a
simple change to codebase) - so it will(is) be possible to better
configure automated indexing (which is targeted mainly at single
instance containing a lot of projects, rather than separate instances)
hmm?
L
On 12.6.2012 5:04, Jens Elkner wrote:
On Mon, Jun 11, 2012 at 07:07:30PM +0000, Huiliang Zhang wrote:
Hi,
...
Tomcat6/webapps/searchforTeama à /var/opengrok/teama
Tomcat6/webapps/searchforTeamb à /var/opengrok/teamb
When the webpages are visited, they show source code repositories for
different teams. However, if I check out a new code for team A and run
“/var/opengrok/teama/bin/OpenGrok index” to rebuild the index files for
team
A, the webpage for team B will display the same source code repositories
as
in the webpage for team A. What causes this problem? Does “OpenGrok index”
command update a shared memory used by both webpage A and webpage B?
Do they use different configAddress params?
Check web/WEB-INF/web.xml and cmdline param -U ...
Have fun,
jel.
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss