[英]Passenger with Rails Action cable
I tried to deploy on production server Rails with actioncable (5.1.5) according to this tutorial https://www.phusionpassenger.com/library/config/nginx/action_cable_integration , on the same host and port, under a sub-URI 我试图根据本教程https://www.phusionpassenger.com/library/config/nginx/action_cable_integration部署在具有动作电缆(5.1.5)的生产服务器Rails上,位于子URI下的同一主机和端口上
But i've got 404 on my /cable url, no errors in production.log 但是我的/ cable网址上有404,在production.log中没有错误
Have tried in application.rb 在application.rb中尝试过
config.action_cable.mount_path = '/cable'
config.action_cable.allowed_request_origins = ['mydomen.com']
no success. 没有成功。
Anyone have experience with this versions of passenger/rails? 有人对此版本的乘客/轨道有经验吗?
Ubuntu 16.04.3 LTS
nginx version: nginx/1.12.2
Phusion Passenger 5.1.12
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
I have found the answer. 我找到了答案。
I have the nginx config generated by cloud66.com. 我有由cloud66.com生成的Nginx配置。 They forgot to put passenger_enabled on;
他们忘记戴上passenger_enabled on;
to ssl server section, adding this resolved the problem. 到ssl服务器部分,添加此按钮即可解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.