summaryrefslogtreecommitdiff
path: root/lib/templates
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2010-02-01 14:50:10 +0100
committermr <mr@mrautenberg.de>2010-02-01 14:50:10 +0100
commite0b1279e10451294662bdd19b11568c39128bdc3 (patch)
tree96ca071bdb64cf338a9b23eb962497093be5d7c7 /lib/templates
parent492f73257e6c87d84e4b25c49e4a392859d59b1c (diff)
parent3925785d70b541345bdbbbad7a8fce18eeaa01db (diff)
delete lib/templates/config.ru
Diffstat (limited to 'lib/templates')
-rw-r--r--lib/templates/config.ru27
-rw-r--r--lib/templates/config.yaml30
2 files changed, 20 insertions, 37 deletions
diff --git a/lib/templates/config.ru b/lib/templates/config.ru
deleted file mode 100644
index ffccbc1..0000000
--- a/lib/templates/config.ru
+++ /dev/null
@@ -1,27 +0,0 @@
-require 'rubygems'
-require 'sinatra'
-require 'application.rb'
-require 'rack'
-require 'rack/contrib'
-
-FileUtils.mkdir_p 'log' unless File.exists?('log')
-log = File.new("log/#{ENV["RACK_ENV"]}.log", "a")
-$stdout.reopen(log)
-$stderr.reopen(log)
-$stdout.sync = true
-$stderr.sync = true
-
-
-if ENV['RACK_ENV'] == 'production'
- use Rack::MailExceptions do |mail|
- mail.to 'helma@in-silico.ch'
- mail.subject '[ERROR] %s'
- end
-elsif ENV['RACK_ENV'] == 'development'
- use Rack::Reloader
- use Rack::ShowExceptions
-end
-
-run Sinatra::Application
-
-set :raise_errors, true \ No newline at end of file
diff --git a/lib/templates/config.yaml b/lib/templates/config.yaml
index 7b46d43..ad7c4ab 100644
--- a/lib/templates/config.yaml
+++ b/lib/templates/config.yaml
@@ -1,10 +1,20 @@
-:base_dir: /home/ch/webservices
-:webserver: thin
-:services:
-# make sure to enter a full uri (including training slash)
- opentox-compound: "http://localhost:4000/"
- opentox-feature: "http://localhost:4001/"
- opentox-dataset: "http://localhost:4002/"
- opentox-algorithm: "http://localhost:4003/"
- opentox-model: "http://localhost:4004/"
- #opentox-task: "http://localhost:4005/"
+# Example configuration for OpenTox, please adjust to your settings
+#
+# Example 1: Using external test services
+#
+# :services:
+# opentox-compound: "http://webservices.in-silico.ch/test/compound/"
+# opentox-dataset: "http://webservices.in-silico.ch/test/dataset/"
+# opentox-algorithm: "http://webservices.in-silico.ch/test/algorithm/"
+# opentox-model: "http://webservices.in-silico.ch/test/model/"
+# opentox-task: "http://webservices.in-silico.ch/test/task/"
+#
+# Example 2: Using local services
+# :base_dir: /home/ch/webservices
+# :webserver: thin
+# :services:
+# opentox-compound: "http://localhost:4000/"
+# opentox-dataset: "http://localhost:4001/"
+# opentox-algorithm: "http://localhost:4002/"
+# opentox-model: "http://localhost:4003/"
+# opentox-task: "http://localhost:4004/"