blueprint css rails 3.1 help

后端 未结 4 1452
心在旅途
心在旅途 2020-12-14 08:06

My blueprint css works on my local machine, but when I push to heroku I get an error.

I have blueprint stored in my app/assets/stylesheets folder and he

4条回答
  •  忘掉有多难
    2020-12-14 08:29

    One way to fix this is to precompile the assets by running rake assets:precompile. You have to include a javascript runtime for this by adding

    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
      gem 'therubyracer'
      gem 'sass-rails', "  ~> 3.1.0"
      gem 'coffee-rails', "~> 3.1.0"a
      gem 'uglifier'
    end
    

    to the Gemfile and run bundle install.

提交回复
热议问题