【发布时间】:2016-02-23 12:16:47
【问题描述】:
我正在尝试使用以下命令在生产模式下运行 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.
这发生在我们使用的所有脚本中。
谁能帮我看看这里可能出了什么问题。
提前致谢。
【问题讨论】:
标签: ruby-on-rails production-environment