没有预编译就无法在localhost上编写新的javascript

时间:2013-01-20 02:49:35

标签: ruby-on-rails

我已经制作了一个Rails应用程序,并在编译资产后部署到Heroku。但是,既然我已经编译了一次资产,如果我想对localhost上的javascript进行更改,我每次都要重新编译资产,否则新的javascript没有正确注册,我看不到更改在localhost上,这使开发变得非常缓慢,因为我必须等待它为每个更改进行编译。

我可以添加一个设置来避免此问题吗?

这些是我的environment / development.rb文件中的设置。

 config.cache_classes = false

  # Log error messages when you accidentally call methods on nil.
  config.whiny_nils = true

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  # Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = false

  # Print deprecation notices to the Rails logger
  config.active_support.deprecation = :log

  # Only use best-standards-support built into browsers
  config.action_dispatch.best_standards_support = :builtin


  # Do not compress assets
  config.assets.compress = false

  # Expands the lines which load the assets
  config.assets.debug = true

0 个答案:

没有答案