soveran / cuba

Rum based microframework for web development.
http://cuba.is
MIT License
1.44k stars 249 forks source link

Manual Server start #31

Closed tbuehlmann closed 10 years ago

tbuehlmann commented 10 years ago

I came to a situation where I needed to start a Cuba application by myself not using rackup or a config.ru file at all. Would be nice if we had an option to do so.

frodsan commented 10 years ago

I think it's better to not support this and create your own boot script instead:

require "./app"

Rack::Handler.get("webrick").run(Cuba, Port: 9292)
tbuehlmann commented 10 years ago

That's exactly what I mean. Why not have a handy method for starting and stopping?

frodsan commented 10 years ago

This is not a common scenario. :-1: to support it by default when a little script can be used.

tbuehlmann commented 10 years ago

Having a lot of these uncommon scenarios lately. :\ But if it's just me, nevermind. :)