Shared Library for handling SOLR updates of user comment information
bin/ contains two scripts for testing. To run one on dev server:
- set your gus environment to an up-to-date dev site, using
setenv. Now your classpath includes$GUS_HOME/lib/javawhich contains some .jars this library needs. mvn installwill create a new SNAPSHOT .jar. Look inpom.xmlto see its version- copy the new jar from your local
.m2/repository to$GUS_HOME/lib/java. Be sure this is the library's only jar in $GUS_HOME. (The name of the .jar doesn't matter) - set environment variables. Either make a local
.envfile fromenv.sample, or usecontainer_envfrom the dev site if its config conforms to your needs - run the script like this:
export $(xargs < my_env_file); bin/apiUserCommentUpdater - if you want to really update solr, add the
--doUpdateflag