OpenNebula / addon-appmarket

AppMarket builds a centralized catalog of cloud applications
http://opennebula.org/addons:addons
Apache License 2.0
10 stars 13 forks source link

Error starting appmarket first time one a clean install #45

Closed tinova closed 8 years ago

tinova commented 9 years ago

CentOS 6.5 & ruby 1.8.7


/usr/lib/ruby/gems/1.8/gems/haml-4.0.5/lib/haml/parser.rb:86: warning: regexp has invalid interval (DELEGATE):2:in settings': stack level too deep (SystemStackError) from (__DELEGATE__):2:insend' from (DELEGATE):2:in settings' from (__DELEGATE__):2:insend' from (DELEGATE):2:in settings' from (__DELEGATE__):2:insend' from (DELEGATE):2:in settings' from (__DELEGATE__):2:insend' from (DELEGATE):2:in settings' ... 2027 levels... from /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:929:inconfigure' from (DELEGATE):2:in send' from (__DELEGATE__):2:inconfigure'

from /usr/lib/one/ruby/oneapps/market/controllers/appmarket-server.rb:49

Solution is to change appmarket-server.rb from:

if settings.respond_to? :public_folder set :public_folder, File.join(File.dirname(FILE), '..', 'public') else set :public, File.join(File.dirname(FILE), '..', 'public')

end

to

set :public_folder, File.join(File.dirname(FILE), '..', 'public')

set :public, File.join(File.dirname(FILE), '..', 'public')