rails 3.1.0 ActionView::Template::Error (application.css isn't precompiled)

前端 未结 14 1690
自闭症患者
自闭症患者 2020-11-27 09:02

I made a basic rails app with a simple pages controller with an index function and when I load the page I get:

ActionView::Template::Error (application.css i         


        
14条回答
  •  粉色の甜心
    2020-11-27 09:40

    You will get better performance in production if you set config.assets.compile to false in production.rb and precompile your assets. You can precompile with this rake task:

    bundle exec rake assets:precompile
    

    If you are using Capistrano, version 2.8.0 has a recipe to handle this at deploy time. For more info, see the "In Production" section of the Asset Pipeline Guide: http://guides.rubyonrails.org/asset_pipeline.html

提交回复
热议问题