[英]RoR App: “The asset 'application.css' is not present in the asset pipeline”
在config/environments/production.rb
我添加了以下行:
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = true
我還檢查了以下行:
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
有了這個配置我就可以啟動我的APP了。
您是否嘗試在服務器上執行以下操作
RAILS_ENV=production bundle exec rake assets:precompile
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.