joh*_*cho 17 ruby-on-rails sass heroku ruby-on-rails-3 asset-pipeline
我正在使用Twitter的Bootstrap翻译成SCSS文件.它适用于本地开发,但是当我预编译并推送到Heroku(使用Cedar堆栈)时,我得到了这个:
> Started GET "/" for 74.57.16.130 at 2012-01-28 17:16:36 +0000
> Processing by StaticPagesController#home as HTML Rendered
> static_pages/home.html.erb within layouts/application (0.7ms)
> Completed 500 Internal Server Error in 4ms
>
> ActionView::Template::Error (couldn't find file 'twitter/bootstrap'
> (in /app/app/assets/stylesheets/application.scss.css:11)):
> 8: </head>
> 6: <%= javascript_include_tag "application" %>
> 4: <title><%= full_title(yield(:title)) %></title>
> 2: <html>
> 5: <%= stylesheet_link_tag "application", :media => "all" %>
app/views/layouts/application.html.erb:5:in
> `_app_views_layouts_application_html_erb___288948710373692320_32137840'
> 3: <head> cache: [GET /] miss
>
> 7: <%= csrf_meta_tags %> cache: [GET /favicon.ico] miss
Run Code Online (Sandbox Code Playgroud)
我正在使用Rails 3.2.0,该应用程序正在使用Heroku,直到我添加了SASS文件.
mik*_*ike 27
你在用宝石吗?确保您的gem不属于资产组,并且可以在生产中访问.
# Gems used only for assets and not in production environments by default.
Run Code Online (Sandbox Code Playgroud)
所以只需将宝石移到任何一组之外,你应该没问题.
| 归档时间: |
|
| 查看次数: |
12577 次 |
| 最近记录: |