小编Nic*_*ang的帖子

Rails 5 资源未在生产中加载

我最近在我的 Rails 应用程序中更新了一些包,现在我的资产没有被提供。相反,我收到以下错误:

Failed to load resource: the server responded with a status of 404 (Not Found)
Run Code Online (Sandbox Code Playgroud)

我的资产是预编译的:

资产.rb

# Be sure to restart your server when you modify this file.

# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'

# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path

# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile …
Run Code Online (Sandbox Code Playgroud)

ruby assets ruby-on-rails asset-pipeline ruby-on-rails-5

5
推荐指数
1
解决办法
9598
查看次数