这是我的Gemfile。
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use mysql as the database for Active Record
gem 'mysql2'
# Use SCSS for stylesheets
gem 'pg'
gem 'rails_12factor', group: :production
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'geocoder'
gem 'geocomplete_rails'
gem 'google_timezone'
gem 'jquery-rails'
gem 'tag-it-rails'
gem 'turbolinks'
gem 'rails4-autocomplete'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'will_paginate', '~> 3.0'
gem 'devise'
gem 'pry'
gem 'friendly_id'
gem "paperclip"
gem 'aws-sdk'
gem 'best_in_place'
gem "nested_form"
gem 'acts-as-taggable-on'
gem 'bootstrap-timepicker-rails'
gem 'mandrill_mailer'
gem 'bootstrap-sass'
gem "font-awesome-rails"
gem 'phony_rails'
gem 'twilio-ruby'
gem 'gmaps4rails'
gem "stripe"
gem "humanize"
gem "prawn"
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'spring', group: :development
gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
我在application.rb文件中有这个
config.assets.paths << File.join(Rails.root, "/vendor/pages")
当我尝试使用rake资产预编译资产时,我的资产中有scss和更少的文件:precompile我收到此错误
Less::ParseError: .padding-right is undefined
我在这里做错了什么帮助?
答案 0 :(得分:0)
I was able to precompile my assets in production mode with
RAILS_ENV=production rake assets:precompile
I am not sure why it worked may be because of rails_12factor gem but it solved my problem.