Swirrl / ook

Structural search engine
https://search-prototype.gss-data.org.uk/
Eclipse Public License 1.0
6 stars 0 forks source link

cli index loader #26

Closed Robsteranium closed 3 years ago

Robsteranium commented 3 years ago

This provides an entry point so you can reset the remote database by doing e.g.

cd /opt/ook
export AUTH0_SECRET=XXX
java -cp "ook.jar:lib/*" -Xmx3g clojure.main -m ook.index

Grafter was complaining of unexpected EOF in the RDF. This is obviated (but not fixed) by dropping the page size.

Robsteranium commented 3 years ago

NB: @kiramclean 8eef5be2 moves the secrets out of the jar. I presume git won't move your uncommitted secret and just create a new directory, leaving your file in place. You'll likely want to do:

mv resources/secrets/*.gpg env/dev/resources/secrets/*.gpg 
rmdir resources/secrets/

I don't suppose it'd break anything if you didn't but this will at least be neater and will mean local builds are consistent/ safer.