简体   繁体   English

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

[英]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.

相关问题 Rails应用程序在本地计算机上工作正常,但在Heroku上发生500错误 - Rails app works fine on local machine but 500 error occurs on heroku Javascript不在Heroku上运行,开发正常,其他很好 - Javascript not running on Heroku, dev fine, others fine 在heroku上部署Rails应用程序时遇到问题(该应用程序在本地运行良好)? - Having issues with deploying Rails app on heroku( app works fine locally)? Rails App在开发中工作正常,但在Heroku postgres上会引起麻烦 - Rails App works fine in development but on Heroku postgres causes trouble 在将 NodeJs 应用程序部署到 heroku 时,我开始收到 tsc 编译错误,即使 tsc 在我的机器上工作正常 - While deploying a NodeJs app to heroku, I started getting tsc compilation error even though tsc works fine in my machine Rails在本地工作正常,但在heroku中没有 - Rails works fine locally but not in heroku Rails应用程序在本地运行良好,但heroku给出“应用程序错误” - Rails app works fine locally but heroku gives “application error” Pusher 未在 Heroku Rails 应用程序上触发,但在 localhost:3000 上工作正常 - Pusher not triggering on Heroku Rails app, but works fine on localhost:3000 我的Rails应用程序适用于localhost但不适用于Heroku - My Rails App works on localhost but not on Heroku Heroku Scheduler没有像我的Rails开发环境那样运行代码 - Heroku Scheduler not running code like my Rails dev enviroment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM