Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 Goliath 的请求控制器之外获取服务器的端口,这意味着我无法访问env['SERVER_PORT'].
env['SERVER_PORT']
所以我试图解析ARGV,结果它是空的
ARGV
我发现有一个port属性Goliath::Runner,但是如何在 Goliath 中引用当前的 runner 实例?
port
Goliath::Runner