forked from ontoportal/ontologies_linked_data
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from ontoportal-lirmm/pl/add-java-heap-size-c…
…onfiguration-variable Add java heap size configuration variable
- Loading branch information
Showing
4 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,67 +15,69 @@ def config(&block) | |
overide_connect_goo = false | ||
|
||
# Set defaults | ||
@settings.goo_backend_name ||= "4store" | ||
@settings.goo_backend_name ||= '4store' | ||
@settings.goo_port ||= 9000 | ||
@settings.goo_host ||= "localhost" | ||
@settings.goo_path_query ||= "/sparql/" | ||
@settings.goo_path_data ||= "/data/" | ||
@settings.goo_path_update ||= "/update/" | ||
@settings.search_server_url ||= "http://localhost:8983/solr/term_search_core1" | ||
@settings.property_search_server_url ||= "http://localhost:8983/solr/prop_search_core1" | ||
@settings.repository_folder ||= "./test/data/ontology_files/repo" | ||
@settings.rest_url_prefix ||= "http://data.bioontology.org/" | ||
@settings.goo_host ||= 'localhost' | ||
@settings.goo_path_query ||= '/sparql/' | ||
@settings.goo_path_data ||= '/data/' | ||
@settings.goo_path_update ||= '/update/' | ||
@settings.search_server_url ||= 'http://localhost:8983/solr/term_search_core1' | ||
@settings.property_search_server_url ||= 'http://localhost:8983/solr/prop_search_core1' | ||
@settings.repository_folder ||= './test/data/ontology_files/repo' | ||
@settings.rest_url_prefix ||= 'http://data.bioontology.org/' | ||
@settings.enable_security ||= false | ||
@settings.enable_slices ||= false | ||
|
||
# Java/JVM options | ||
@settings.java_max_heap_size ||= '10240M' | ||
### these params should be not ussed any more | ||
# removed so that dependencies shout | ||
# | ||
# @settings.redis_host ||= "localhost" | ||
# @settings.redis_port ||= 6379 | ||
# ### | ||
|
||
@settings.ui_host ||= "bioportal.bioontology.org" | ||
@settings.ui_host ||= 'bioportal.bioontology.org' | ||
@settings.replace_url_prefix ||= false | ||
@settings.id_url_prefix ||= "http://data.bioontology.org/" | ||
@settings.id_url_prefix ||= 'http://data.bioontology.org/' | ||
@settings.queries_debug ||= false | ||
@settings.enable_monitoring ||= false | ||
@settings.cube_host ||= "localhost" | ||
@settings.cube_host ||= 'localhost' | ||
@settings.cube_port ||= 1180 | ||
|
||
# Caching http | ||
@settings.enable_http_cache ||= false | ||
@settings.http_redis_host ||= "localhost" | ||
@settings.http_redis_host ||= 'localhost' | ||
@settings.http_redis_port ||= 6379 | ||
|
||
#Caching goo | ||
@settings.goo_redis_host ||= "localhost" | ||
@settings.goo_redis_host ||= 'localhost' | ||
@settings.goo_redis_port ||= 6379 | ||
|
||
#Ontology Analytics Redis | ||
@settings.ontology_analytics_redis_host ||= "localhost" | ||
@settings.ontology_analytics_redis_host ||= 'localhost' | ||
@settings.ontology_analytics_redis_port ||= 6379 | ||
|
||
# PURL server config parameters | ||
@settings.enable_purl ||= false | ||
@settings.purl_host ||= "purl.bioontology.org" | ||
@settings.purl_host ||= 'purl.bioontology.org' | ||
@settings.purl_port ||= 80 | ||
@settings.purl_username ||= "" | ||
@settings.purl_password ||= "" | ||
@settings.purl_maintainers ||= "" | ||
@settings.purl_target_url_prefix ||= "http://bioportal.bioontology.org" | ||
@settings.purl_username ||= '' | ||
@settings.purl_password ||= '' | ||
@settings.purl_maintainers ||= '' | ||
@settings.purl_target_url_prefix ||= 'http://bioportal.bioontology.org' | ||
|
||
# Email settings | ||
@settings.enable_notifications ||= false | ||
@settings.email_sender ||= "[email protected]" # Default sender for emails | ||
@settings.email_override ||= "[email protected]" # By default, all email gets sent here. Disable with email_override_disable. | ||
@settings.email_sender ||= '[email protected]' # Default sender for emails | ||
@settings.email_override ||= '[email protected]' # By default, all email gets sent here. Disable with email_override_disable. | ||
@settings.email_disable_override ||= false | ||
@settings.smtp_host ||= "localhost" | ||
@settings.smtp_host ||= 'localhost' | ||
@settings.smtp_port ||= 25 | ||
@settings.smtp_user ||= "user" | ||
@settings.smtp_password ||= "password" | ||
@settings.smtp_user ||= 'user' | ||
@settings.smtp_password ||= 'password' | ||
@settings.smtp_auth_type ||= :none # :none, :plain, :login, :cram_md5 | ||
@settings.smtp_domain ||= "localhost.localhost" | ||
@settings.smtp_domain ||= 'localhost.localhost' | ||
@settings.enable_starttls_auto ||= false # set to true for use with gmail | ||
|
||
# number of times to retry a query when empty records are returned | ||
|
@@ -89,19 +91,19 @@ def config(&block) | |
|
||
unless @settings.redis_host.nil? | ||
puts "Error: 'redis_host' is not a valid conf parameter." | ||
puts " Redis databases were split into multiple hosts (09/22/13)." | ||
raise Exception, "redis_host is not a valid conf parameter." | ||
puts ' Redis databases were split into multiple hosts (09/22/13).' | ||
raise Exception, 'redis_host is not a valid conf parameter.' | ||
end | ||
|
||
# Check to make sure url prefix has trailing slash | ||
@settings.rest_url_prefix = @settings.rest_url_prefix + "/" unless @settings.rest_url_prefix[-1].eql?("/") | ||
@settings.rest_url_prefix = @settings.rest_url_prefix + '/' unless @settings.rest_url_prefix[-1].eql?('/') | ||
|
||
puts "(LD) >> Using rdf store #{@settings.goo_host}:#{@settings.goo_port}" | ||
puts "(LD) >> Using term search server at #{@settings.search_server_url}" | ||
puts "(LD) >> Using property search server at #{@settings.property_search_server_url}" | ||
puts "(LD) >> Using HTTP Redis instance at "+ | ||
puts '(LD) >> Using HTTP Redis instance at '+ | ||
"#{@settings.http_redis_host}:#{@settings.http_redis_port}" | ||
puts "(LD) >> Using Goo Redis instance at "+ | ||
puts '(LD) >> Using Goo Redis instance at '+ | ||
"#{@settings.goo_redis_host}:#{@settings.goo_redis_port}" | ||
|
||
connect_goo unless overide_connect_goo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters