+--------------------------------------------------------+ | Notes taken by jchatigny during installation of OOR UI | | | | See also: INSTALL-CORE.txt | +--------------------------------------------------------+ > cd ~/project/svn/trunk/bioportalui/conf > cp database.yml.sample database.yml +--------------------------------------------------+ | Copied database.yml.sample -> database.yml | | Customized 'development' section for our config: | | | | database: BioportalGui_development | | username: bioportal_prd | | password: bioportal_prd | +--------------------------------------------------+ > cp environment.rb.sample environment.rb +----------------------------------------------------+ | Copied environment.rb.sample -> environment.rb | | | | Added: | | require 'memcache' | | | | Customized as follows: | | | | RAILS_GEM_VERSION = '2.3.5' | | $REST_URL="http://oor.dsl.bbn.com:8086/bioportal" | | $REST_PORT="8086" | | $SITE_NAME = "Raytheon BBN OOR" | | $ADMIN_EMAIL = "jchatigny@xxxxxxx" | | $ERROR_EMAIL = "jchatigny@xxxxxxx" | +----------------------------------------------------+ +----------------------------------------------------------------------------+ | Commented out the following line in environments/development.rb: | | config.action_view.cache_template_extensions = false | | | | Else, the rake step fails with the following error: | | undefined method `cache_template_extensions=' for ActionView::Base:Class" | +----------------------------------------------------------------------------+ +-------------------------------------------------+ | Created new database 'bioportalGui_development' | +-------------------------------------------------+ > mysql --user=root --password=******** > create database bioportalGui_development; > exit > cd ~/project/svn/trunk/bioportalui > rake db:migrate +---------------------------------------------------------+ | Started memcached in background (use default port 1121) | | > nohup memcached & | +---------------------------------------------------------+ +-------------------------------------------+ | Can now run ui (-d for disconnected mode) | | > ruby script/server -d | +-------------------------------------------+ Using http://oor.dsl.bbn.com:3000 yields some errors.... (1) Add require 'ApplicationController' to each subclass defined in the app/controllers directory (e.g. home_controller.rb, etc.) (2) Make the function 'clear_reloadable_connections' be a complete no-op in the file vendor/plugins/spawn/lib/patches.rb +--------------------------------------------------------+ | UI database (bioportalGUI_development) did not contain | | the table 'event_items'. | | | | Copied bioportalui/db/schema.rb -> schema.rb.SAFE | | Then did > svn revert on schema.rb | | Them did > rake db:schema:load | | | | That added the event_items table | +--------------------------------------------------------+ +--------------------------------------------------------------------------------------------------------------------+ | Fix jquery javascript errors associated with 'cursorMessage'; e.g. | | > ActionController::RoutingError (No route matches "/stylesheets/jquery.cursorMessage.css" with {:method=>:get}): | | > ActionController::RoutingError (No route matches "/javascripts/jquery.cursorMessage.js" with {:method=>:get}): | +--------------------------------------------------------------------------------------------------------------------+ Downloaded jquery cursorMessage plugin version 0.2 Added the following files: - buiportalui/public/javascripts/JqueryPlugins/jquery.cursorMessage.css - buiportalui/public/javascripts/JqueryPlugins/jquery.cursorMessage.js +--------------------------------------------------------------------------------------+ | Fix error: ActionView::TemplateError (undefined class/module OntologyMetricsWrapper) | +--------------------------------------------------------------------------------------+ Added require 'ontology_metrics_wrapper' to bioportalui/app/models/data_access.rb +---------------------------------------------------+ | Uploading ontologies seems to work correctly now. | | Have not tested other features (e.g. mappings). | +---------------------------------------------------+