hyperstack-org / hyperstack-org/hyperstack

Suggestion: Fix mounting action cable in routes

オープン
#272 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。