summaryrefslogtreecommitdiff
path: root/lib/lazar.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-12-14 12:05:39 +0100
committergebele <gebele@in-silico.ch>2017-12-14 12:05:39 +0100
commit634d88eba14ef41402e95120f00230ab0a1e6041 (patch)
treea9070f3b614b81d27d3a248ed6832ed50ca11644 /lib/lazar.rb
parent9f49ca73136f299f3790ea41ce77dfe339306e56 (diff)
set OS internal address for mongodb and rserve
Diffstat (limited to 'lib/lazar.rb')
-rw-r--r--lib/lazar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lazar.rb b/lib/lazar.rb
index 71b33a0..66f6777 100644
--- a/lib/lazar.rb
+++ b/lib/lazar.rb
@@ -19,7 +19,7 @@ ENV["MONGOID_ENV"] = ENV["LAZAR_ENV"]
ENV["RACK_ENV"] = ENV["LAZAR_ENV"] # should set sinatra environment
# search for a central mongo database in use
# http://opentox.github.io/installation/2017/03/07/use-central-mongodb-in-docker-environment
-CENTRAL_MONGO_IP = "mongodb.lazar.svc"
+CENTRAL_MONGO_IP = "mongodb"
Mongoid.load_configuration({
:clients => {
:default => {
@@ -48,7 +48,7 @@ end
#rlib = File.expand_path(File.join(File.dirname(__FILE__),"..","R"))
# should work on POSIX including os x
# http://stackoverflow.com/questions/19619582/number-of-processors-cores-in-command-line
-CENTRAL_RSERVE_IP = "rserve.lazar.svc"
+CENTRAL_RSERVE_IP = "rserve"
NR_CORES = `getconf _NPROCESSORS_ONLN`.to_i
if CENTRAL_RSERVE_IP.blank?
R = Rserve::Connection.new