0

我刚刚了解了sinatra和shot弹枪。当我运行shotgun时,我看到Thin web server (v1.6.3 codename Protein Powder)我刚才看到了另一个代号(Gob Bluth

这些代号是自动生成的吗?

4

1 回答 1

1

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"

于 2016-05-17T05:34:24.297 回答