【问题标题】:rails faye doesn't work铁轨faye不起作用
【发布时间】:2015-03-12 06:28:42
【问题描述】:

我安装了faye-rails gem,thin gem,放到config.ru

require 'faye'
faye_server = Faye::RackAdapter.new(:mount => '/faye')
run faye_server

然后我运行rails s,但是当客户端订阅脚本运行时出现路由错误。 也许我应该为 faye 运行一台瘦服务器,为 rails 运行一台?

rails s
rackup config.ru -s thin -E production

还有一个问题,faye's thin 可以和独角兽一起使用吗?它也应该作为单独的服务器运行吗?如:

【问题讨论】:

标签: ruby-on-rails faye


【解决方案1】:

我正在为我的应用程序使用 thin web-server 来显示通知。 也许这对您很有帮助。 Detail of using faye server in rails

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多