这是页首

rails 5 action cable 服务器部署

  config/environments/development.rb

 

  config.action_cable.url = 'ws://10.129.56.223:28080'                         // 浏览器访问的websoket 服务地址
  ActionCable.server.config.disable_request_forgery_protection = true   //  允许远程请求访问

posted @ 2017-06-22 14:07  夏日的风888  阅读(358)  评论(0编辑  收藏  举报