dougehe2022 2018-12-23 13:29
浏览 32

单独服务器中的任何电缆

I have my rails in a server A and I created a separate server where Go-lang is installed

My Goal is to use Anycable-Go with Rails but being in separated server.

I can't really find any clear explanation in google how to do that, but from the doc I tried the following in my "Go" server :

go get -u -f github.com/anycable/anycable-go/cmd/anycable-go

then

anycable-go --rpc_host=0.0.0.0:50051 --headers=cookie,x-api-token \
              --redis_url=redis://{my_redis_username}:{my_redis_password}@{my_redis_machine_url} --redis_channel=anycable \
              --host=0.0.0.0 --port=8084

The output looks like this :

enter image description here

Am really not that sure am on the right track so far... but if so, how am supposed to make my rails app connect/using this "anycable-go" server ?

  • 写回答

1条回答 默认 最新

  • doushuo2834 2019-07-24 14:46
    关注

    You need to add anycable-rails gem to your app and run AnyCable RPC server (bundle exec anycable) along with the Rails server. See https://docs.anycable.io/#/using_with_rails

    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题