feature #1370: make sunstone server compatible with rackup

This commit is contained in:
Javi Fontan committed 2013-03-05 15:55:49 +01:00
1 parent a4a6f566ca
commit 7d73610eb7
2 files changed
+14 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
# If you are using self contained installation set this variable to the
# install location
#ENV['ONE_LOCATION']='/path/to/OpenNebula/install'
WITH_RACKUP=true
$: << '.'
require 'sunstone-server'
run Sinatra::Application
+2 -1
View File
@@ -408,4 +408,5 @@ post '/:resource/:id/action' do
request.body.read)
end
Sinatra::Application.run!
Sinatra::Application.run! if(!defined?(WITH_RACKUP))