0

我在我的 Rails 应用程序中使用 compass-rails gem。我正在使用 rails 3.2 并尝试在 Heroku cedar 堆栈上进行部署。

资产预编译似乎没有任何问题通过。

尝试访问该站点时,我不断收到以下错误(在日志中):

ActionView::Template::Error (File to import not found or unreadable: compass.

我究竟做错了什么?

4

1 回答 1

1

我发现了问题。显然,Heroku 必须具有以下配置集:

config.assets.initialize_on_precompile = false

我添加了它,现在一切正常。

于 2012-09-24T16:01:17.177 回答