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 -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

python - Received unregistered task using Celery with Django -