From eb76316835ca87cd543ec69a4940a93093f128c0 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 5 Sep 2019 11:21:16 +0200 Subject: database prepopulation with PubChem CId's, permission for /api path fixed --- docker/start.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docker/start.sh') diff --git a/docker/start.sh b/docker/start.sh index e223878..ec7ea0e 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -5,7 +5,11 @@ mongod --bind_ip 127.0.0.1 --dbpath ~/data & R CMD Rserve --vanilla & # import data +echo "Importing data and validating models" ruby -e "require 'lazar'; include OpenTox; Import.public_data if Model::Validation.all.empty?" +# get PubChem cids in advance to avoid timeout issues +echo "Importing PubChem CID's" +ruby -e "require 'lazar'; include OpenTox; Compound.all.each{|c| c.cid}" # start lazar service cd `ls -d $(gem environment gemdir)/gems/lazar-gui-*` -- cgit v1.2.3