重新加载架构服务器 / 分支架构版本
使用 rackup 文件启动服务器: shell shotgun config.ru 使用 Thin 并启动在端口 6000 上而不是 9393 (默认): shell shotgun --server=thin --port=6000 config.ru 运行 Sinatra 应用程序: shell shotgun hello.rb 请参阅 'shotgun --help' 以了解更多高级用法。兼容性 --- 由于使用的底层技术, Shotgun 仅与支持 fork(2) 的系统兼容(可能仅限于 POSIX 系统上的 MRI)。注意事项 --- * 出于性能考虑, Shotgun 自动包含中间件来服务静态文件(类似于 Rack::Static)。如果您依赖 Rack 来服务静态资产,则需要自行包含 Rack::Static。 * 如果您使用 Sinatra,可能需要 [手动设置会话密钥][sinatra-caveat]。
config.ru) 类似,您在预加载文件 (shotgun.rb) 中不能使用 require_relative。Shotgun Rack Sinatra [sinatra-caveat]: https://groups.google.com/forum/#!topic/sinatrarb/pUFSoyQXyQs
暂无开放 Issues,或尚未同步最近议题。