Tengo una aplicación simple de sinatra.Problemas con Sinatra y Ruby 1.9.2 en Shotgun
require 'rubygems'
require 'sinatra'
get '/' do
"Hello"
end
Cuando corro en la escopeta me sale el siguiente error:
Boot Error
Something went wrong while loading simple.rb
LoadError: no such file to load -- simple.rb
:29:in
require' <internal:lib/rubygems/custom_require>:29:in
require' /home/thedinga/.rvm/gems/[email protected]/gems/shotgun-0.8/lib/shotgun/loader.rb:114:ininner_app' /home/thedinga/.rvm/gems/[email protected]/gems/shotgun-0.8/lib/shotgun/loader.rb:102:in
assemble_app' /home/thedinga/.rvm/gems/[email protected]/gems/shotgun-0.8/lib/shotgun/loader.rb:86:inproceed_as_child' /home/thedinga/.rvm/gems/[email protected]/gems/shotgun-0.8/lib/shotgun/loader.rb:31:in
call!' /home/thedinga/.rvm/gems/[email protected]/gems/shotgun-0.8/lib/shotgun/loader.rb:18:incall' /home/thedinga/.rvm/gems/[email protected]/gems/shotgun-0.8/lib/shotgun/favicon.rb:12:in
call' /home/thedinga/.rvm/gems/[email protected]/gems/rack-1.2.1/lib/rack/builder.rb:77:incall' /home/thedinga/.rvm/gems/[email protected]/gems/rack-1.2.1/lib/rack/content_length.rb:13:in
call' /home/thedinga/.rvm/gems/[email protected]/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:inservice' /home/thedinga/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
service' /home/thedinga/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:inrun' /home/thedinga/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in
block in start_thread'
Si volviera a utilizar ruby simple.rb
en lugar de escopeta, consigo la salida era de esperar en un navegador. Como nota al margen, si presiono a Heroku (que me gustaría ejecutar una aplicación de sinatra), Heroku tampoco podrá ejecutar la aplicación. ¿Es este un problema de versión con 1.9.2? o me estoy perdiendo algo más?
wow gracias por la sugerencia, soy un chico .Net así que no voy a ver cosas así. –
+200 puntos gracias – cbmeeks