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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -