hyperstack-org / hyperstack-org/hyperstack

Suggestion: Fix mounting action cable in routes

未關閉
#272 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
538
分支
41
PR 合併指標
30 天內沒有已合併 PR

描述

Hey, I could get live changes locally. The missing part was adding

` mount ActionCable.server => '/cable' ` to the routes file

Current problem not solved:

On production when updating a model, I just get `execute_remote`. No action cable is present

I have

`Hyperstack.transport = :action_cable` in the initializer

```
config.action_cable.mount_path = "/cable"
config.action_cable.allowed_request_origins = ['http://what.whatever.com']
config.web_socket_server_url = "ws:///what.whatever.com/cable"
```
Inside production.rb. On development it connects to ws.

The cable.yml is simple, the redis db works on production

```
development:
adapter: async

test:
adapter: async

production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: test-todo_production
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。