hyperstack-org / hyperstack-org/hyperstack

Suggestion: Fix mounting action cable in routes

Đang mở
#272 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
538
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.