From 3c889b2f4ad900a31911c49828c8e8768bf00908 Mon Sep 17 00:00:00 2001 From: Josh Lagrimas Date: Fri, 21 Apr 2023 11:52:22 +0100 Subject: [PATCH] issue-65: disable embedded Tomcat and remove unnecessary exit --- oxo-indexer/application.properties | 1 + .../src/main/java/uk/ac/ebi/spot/indexer/SolrIndexer.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/oxo-indexer/application.properties b/oxo-indexer/application.properties index e61c694..780409c 100644 --- a/oxo-indexer/application.properties +++ b/oxo-indexer/application.properties @@ -8,6 +8,7 @@ oxo.neo.uri=http://neo4j:dba@localhost:7474 #bolt://neo4j:dba@localhost:7688 spring.data.solr.host=http://localhost:8983/solr +spring.main.web-environment=false oxo.indexer.chunks=100000 diff --git a/oxo-indexer/src/main/java/uk/ac/ebi/spot/indexer/SolrIndexer.java b/oxo-indexer/src/main/java/uk/ac/ebi/spot/indexer/SolrIndexer.java index 8f6ac8b..03e7d1b 100644 --- a/oxo-indexer/src/main/java/uk/ac/ebi/spot/indexer/SolrIndexer.java +++ b/oxo-indexer/src/main/java/uk/ac/ebi/spot/indexer/SolrIndexer.java @@ -53,6 +53,6 @@ public void run(String... strings) throws Exception { } public static void main(String[] args) throws Exception { - SpringApplication.exit(SpringApplication.run(SolrIndexer.class, args)); + SpringApplication.run(SolrIndexer.class, args); } }