我正在将一个Rails应用程序从Hyperloop升级到Hyperstack。自超级堆栈以来,"opal_hot_reloader“gem已经过时了吗?
发布于 2019-05-02 03:38:16
是的..。热加载程序的一个版本现已内置于超级堆栈中。
在您的hyperstack.rb初始化器中,您需要:
Hyperstack.configuration do |config|
...
config.import 'hyperstack/hotloader', client_only: true if Rails.env.development?
endProcfile (用于工头)如下所示:
web: bundle exec rails s -b 0.0.0.0
hot-loader: bundle exec hyperstack-hotloader -p 25222 -d app/hyperstackassets/javascripts/application.js应该是这样结束的:
//= require jquery
//= require jquery_ujs
//= require hyperstack-loader超级堆栈加载器将(使用初始化器)找出要添加到您的资产中的附加代码,包括hotloader。
https://stackoverflow.com/questions/55941585
复制相似问题