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



对客户端数据的超堆栈更新在本地工作,但在将应用程序部署到 Heroku 后就不行了。

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

更新导轨表单(恰好在引导程序中(,例如:

.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

对超级堆栈仪表板中的更新事件做出反应:


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!

您必须做几件事才能通过操作电缆启用推送通知

有关说明,请参阅此问题:https://github.com/hyperstack-org/hyperstack/issues/230

最新更新