summaryrefslogtreecommitdiff
path: root/update_prediction_models.rb
blob: 31baa775a8aa42687fa483adc74dc2294e5db2a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
ENV["LAZAR_ENV"] = "production"
require_relative '../lazar/lib/lazar'
#require 'lazar'
include OpenTox
$mongo.database.drop
$gridfs = $mongo.database.fs # recreate GridFS indexes

# uncomment to load in particular to local mongodb
#mongorestore --host 127.0.0.1

`mongorestore --host #{ CENTRAL_MONGO_IP.blank? ? "127.0.0.1" : CENTRAL_MONGO_IP}`