对客户端数据的Hyperstack更新在本地工作,但不是在应用程序部署到Heroku之后。
我们正在使用一个小的rails 5应用程序来探索如何将遗留的rails应用程序与Hyperstack功能相结合。
更新rails表单(恰好在Bootstrap中),例如:
.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仪表板中的更新事件做出反应:
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!发布于 2019-08-22 02:00:33
要通过action-cable启用推送通知,您必须做几件事
有关说明,请参阅本期:https://github.com/hyperstack-org/hyperstack/issues/230
https://stackoverflow.com/questions/57596149
复制相似问题