mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 17:23:10 +09:00
feature #1370: make sunstone server compatible with rackup
This commit is contained in:
1 parent
a4a6f566ca
commit
7d73610eb7
2 files changed
+14
-1
No files matched your search
Executable
+12
@@ -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
|
||||
|
||||
@@ -408,4 +408,5 @@ post '/:resource/:id/action' do
|
||||
request.body.read)
|
||||
end
|
||||
|
||||
Sinatra::Application.run!
|
||||
Sinatra::Application.run! if(!defined?(WITH_RACKUP))
|
||||
|
||||
Reference in new issue
Block a user