我安装了faye-rails gem,瘦gem,放到config.ru
require 'faye'
faye_server = Faye::RackAdapter.new(:mount => '/faye')
run faye_server然后我运行rails s,但是当客户端订阅脚本运行时,有一个路由错误。也许我应该为faye运行一台thins服务器,为rails运行一台?
rails s
rackup config.ru -s thin -E production还有一个问题,有没有可能将faye's thin用于独角兽?它是否也应该作为单独的服务器运行?作为:
发布于 2015-12-01 14:51:55
我对我的应用程序使用瘦web服务器来显示通知。也许这对你是有帮助的。Detail of using faye server in rails
https://stackoverflow.com/questions/29003206
复制相似问题