我正在尝试使用以下命令在生产模式下运行Rails(不太了解它):
rails server -e production
但是我在控制台上得到了这些错误,并且加载了一个没有 CSS 样式的丑陋页面:
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://10.20.200.199:3000/".
(index):1 Refused to execute script from 'http://10.20.200.199:3000/javascripts/application.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
(index):1 Refused to execute script from 'http://10.20.200.199:3000/logins/plugins.js?v=1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
这种情况出现在我们使用的所有脚本中。
有人能帮我看看这里可能出了什么问题吗?
先行致谢。