簡體   English   中英

如何在Heroku上運行的Rails 5中啟用Hyperstack應用程序? 在我的Dev機器上工作正常

[英]How to enable Hyperstack app in Rails 5 running on Heroku? Works fine on my Dev machine

對客戶端數據的超堆棧更新在本地工作,但在將應用程序部署到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儀表板中的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!

您必須做一些事情才能通過動作電纜啟用推送通知

請參閱此問題以獲取解釋: https : //github.com/hyperstack-org/hyperstack/issues/230

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM