ruby - Webrick does not start when starting a Sinatra app -


any idea why webrick refuses start?

require 'sinatra/base' require 'slim'  class blog < sinatra::base   '/'     slim :home   end end 

running ruby blog.rb nothing. no error raised.

the built in web server isn’t started when using modular style of sinatra apps. see the docs differences between modular , classic styles.

to run classic style app, add line bottom of blog class:

run! if app_file == $0 

Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -