3 ms·
While working on a sinatra app recently, I noticed that sinatra has no rails equivalent to rails console. racksh (Rack::Shell) is a console for Rack based
by 1gor 15y ago
While working on a sinatra app recently, I noticed
that sinatra has no rails equivalent to rails console.
racksh (Rack::Shell) is a console for Rack based ruby web applications. From the README at https://github.com/sickill/racksh https://github.com/sickill/racksh :
"It's like script/console in Rails or merb -i in Merb, but for any app built on Rack. You can use it to load application environment for Rails, Merb, Sinatra, Camping, Ramaze or your own framework provided there is config.ru file in app's root directory /.../ It loads whole application environment like Rack web server, but instead of running the app it starts irb session. Additionally it exposes $rack variable which allows you to make simulated HTTP requests to your app.".
- cldwalker 15y agoI'm aware of racksh but it's not sinatra-specific. It has no knowledge of a sinatra app and thus can't give you sinatra-specific goodies that tux does: metrics for your sinatra app (routes + settings) and commandline interaction with your helpers and view rendering