給出的Gemfile下方,並且該資產預編譯和手動上傳,爲什麼命令爲什麼資產需要資產寶石:預編譯完成?
rake RAILS_ENV=production db:schema:load
原因紅寶石抱怨說,在「資產」的寶石沒有安裝?我認爲資產只用於生產或預編譯沒有完成?
的問題是,rubyracer,它似乎是由以下/ SASS需要對目標架構不編譯(ARM處理器)
# gemfile
source 'https://rubygems.org'
gem 'rails', '>= 3.2.8'
gem 'bcrypt-ruby', '>= 3.0.1'
gem 'faker', '1.0.1'
gem 'uuidtools'
gem 'simple_form', '>= 2.0.0'
gem 'devise'
gem 'pg', '>= 0.12.2'
gem 'json'
gem 'jquery-rails'
group :development, :test do
gem 'sqlite3', '>= 1.3.5'
gem 'rspec-rails', '>= 2.11.0'
gem 'annotate'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'coffee-rails', '>= 3.2.2'
gem 'uglifier', '>= 1.2.3'
gem 'therubyracer'
gem 'sass-rails'
gem 'less-rails'
gem 'less-rails-bootstrap'
gem 'will_paginate'
gem 'bootstrap-will_paginate'
gem 'less-rails-fontawesome'
end
group :test do
gem 'capybara', '>= 1.1.2'
gem 'rb-fchange'
gem 'rb-notifu'
gem 'factory_girl_rails'
gem 'database_cleaner'
end
看到此鏈接http://edgeguides.rubyonrails.org/asset_pipeline.html –
感謝,我沒有跟隨大部分的指示操作,尤其是當地的預編譯。我仍然得到錯誤 rake RAILS_ENV =生產分貝:架構:加載 無法在此計算機上可用的寶石中找到gem'therubyracer(> = 0)ruby'。 運行'bundle install'安裝缺失的寶石。 – jmls