[英]How to enable Hyperstack app in Rails 5 running on Heroku? Works fine on my Dev machine
Hyperstack updates to client data work locally but not after the app is deployed to Heroku. 对客户端数据的超堆栈更新在本地工作,但在将应用程序部署到Heroku之后不起作用。
We are using a small rails 5 app to explore how to combine legacy rails apps with Hyperstack capabilities. 我们正在使用一个小型Rails 5应用程序来探索如何将旧版Rails应用程序与Hyperstack功能结合在一起。
Update the rails form (happens to be in Bootstrap), for example: 更新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
React to the update event in the Hyperstack Dashboard: 对Hyperstack仪表板中的update事件做出反应:
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!
You have to do a couple of things to enable push notifications via action-cable 您必须做一些事情才能通过动作电缆启用推送通知
See this issue for an explanation: https://github.com/hyperstack-org/hyperstack/issues/230 请参阅此问题以获取解释: https : //github.com/hyperstack-org/hyperstack/issues/230
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.