diff --git a/src/sunstone/config.ru b/src/sunstone/config.ru index 9c0c37947d..dce38aaee0 100644 --- a/src/sunstone/config.ru +++ b/src/sunstone/config.ru @@ -16,9 +16,7 @@ # limitations under the License. # #--------------------------------------------------------------------------- # -SUNSTONE_ROOT_DIR = File.dirname(__FILE__) - -$: << SUNSTONE_ROOT_DIR +$: << File.dirname(__FILE__) require 'sunstone-server.rb' diff --git a/src/sunstone/sunstone-server.rb b/src/sunstone/sunstone-server.rb index 54fe8c4dd9..962912e901 100755 --- a/src/sunstone/sunstone-server.rb +++ b/src/sunstone/sunstone-server.rb @@ -36,6 +36,8 @@ end HOST_LOG_FOLDER = LOG_LOCATION+"/OneMonitor/host" VM_LOG_FOLDER = LOG_LOCATION+"/OneMonitor/vm" +SUNSTONE_ROOT_DIR = File.dirname(__FILE__) + $: << RUBY_LIB_LOCATION $: << SUNSTONE_ROOT_DIR+'/models' $: << SUNSTONE_ROOT_DIR+'/share/OneMonitor'