solr port issues
|Reported by:||kjdon||Owned by:||ak19|
|Component:||Greenstone3 Ant Code||Severity:||minor|
Description (last modified by )
Solr runs off the tomcat port. ext/solr/gs3-setup.sh is run when we source gs3-setup.sh in top level. This reads build.properties and sets SOLR_PORT and SOLR_HOST env vars based on values of tomcat.port and tomcat.host.
This is all fine until you want to change your tomcat port. gs3-setup.sh can never get re-run in the same terminal, so you can never reset SOLR_PORT variable.
- when port is changed in gs3 server settings, it needs to do something about SOLR_PORT.
- maybe we can make an ant target 'configure' which is called when the top level configure is called? (this is called whenever we start the server). Then SOLR_PORT wil get checked everytime we start the server.
- however, this won't set it in the terminal? cos its not doing a 'source'.
Can we find the solr url a different way, not using environmnet vars??