Search code examples
sinatrashotgun

Are the webserver code names auto generated by shotgun (sinatra)?


I just learned about sinatra and shotgun. When I run shotgun, I see Thin web server (v1.6.3 codename Protein Powder) I saw another codename just now (Gob Bluth)

Are these codenames auto generated?


Solution

  • Shotgun is a reloader for Sinatra. An application that uses Sinatra can be run on it's own without Shotgun. Shotgun makes development easy since you don't have to restart the server every time you change a piece of application code.

    The server code names are generated by the underlying Rack handler. For instance, this is what Puma does when the server starts. The codename in the case of Puma depends on the handler version, and not the running instance. In your case, Thin 1.6.4 is codenamed "Gob Bluth"