当我在生产模式下启动 rails 时,它会预编译所有资产,但无法为 application.css 资产提供服务。我看了看,public/assets
预编译的 application.css 存在。
但是,每当我尝试从页面访问它时,我都会收到 404。
这些是我用来启动服务器的说明,如果这可能有帮助的话。
RAILS_ENV=production bundle exec rake assets:clean
RAILS_ENV=production bundle exec rake assets:precompile
rails -e production