如何在heroku上禁用资产管道?
heroku雪松隐含地预编译了我的资产,尽管我写了:
config.assets.enabled = false
如何禁用资产function?
问题是编译slug时应用程序配置不可用。 这是最近用http://devcenter.heroku.com/articles/labs-user-env-compile解决的,但我不确定这是否有帮助。
有关Heroku管道的更多信息,请查看http://devcenter.heroku.com/articles/rails31_heroku_cedar
看起来防止资产编译的最简单方法是将文件放在public / assets / manifest.yml中 – 假设内容是无关紧要的,但也可以通过config.assets.enabled禁用它以防万一。