首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Heroku上运行的Rails 5中启用Hyperstack应用程序?在我的Dev机器上工作正常

如何在Heroku上运行的Rails 5中启用Hyperstack应用程序?在我的Dev机器上工作正常
EN

Stack Overflow用户
提问于 2019-08-22 00:53:52
回答 1查看 36关注 0票数 0

对客户端数据的Hyperstack更新在本地工作,但不是在应用程序部署到Heroku之后。

我们正在使用一个小的rails 5应用程序来探索如何将遗留的rails应用程序与Hyperstack功能相结合。

更新rails表单(恰好在Bootstrap中),例如:

代码语言:javascript
复制
  .form-group
    = form.label :cargo, "Cargo", class: "col-md-4 control-label" 
    .col-md-8
      = form.text_area :cargo, class: "form-control"
   ...
  %p
  .actions
    = form.submit

对Hyperstack仪表板中的更新事件做出反应:

代码语言:javascript
复制
      H5 { '(click to expand)' }

 Shipment.send(match.params[:scope]).search_for(@search_string.strip).each do |shipment|
        LI(class: 'roll365-list'){ ShipmentItem(shipment: shipment) }
      end #shipment```

An update to the Shipment form data should immediately update the Hyperstack dashboard page.  On Dev it does, on Heroku it doesn't.  This update is dynamic and occurs quickly so it's not terrible useful to display the effect in a static text!
EN

回答 1

Stack Overflow用户

发布于 2019-08-22 02:00:33

要通过action-cable启用推送通知,您必须做几件事

有关说明,请参阅本期:https://github.com/hyperstack-org/hyperstack/issues/230

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57596149

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档