Tired of restarting Sinatra
Sinatra server running and every time you edit some file a server restart is required. Tiring... boring...
In order to avoid that use the gem called shotgun.
You will need to rather than start your app with
$ ruby yourapp.rb
Start with
$ shotgun yourapp.rb
Shotgun will make the app respond on port 9393 as default. If you want the app responding on a different port (e.g. 6379) use
$ shotgun yourapp.rb --port=6379
References
https://github.com/rtomayko/shotgun <br />
http://www.sinatrarb.com/
Written by Junior Ales
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#