Gem Grape 用 Rack::Reloader 的时候出问题, endpoints 重复了....

tumayun · 2014年01月14日 · 最后由 tumayun 回复于 2014年01月14日 · 2428 次阅读

最近用 Grape + Goliath 写 API,在 development 下 reload 出问题了. 导致 action 里面怎么改都是启动时候的代码,debugger 了半天,才发现 load 一次文件,endpoints 就又加载了一次,没有去重。

详见 https://github.com/intridea/grape/issues/552

不知道大家有遇到过这个问题不。

木有人碰到吗?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号