Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 play2 应用程序并尝试将其部署在 heroku 上。部署后,该应用程序根本没有样式。我已经在我的本地/开发机器上重新测试了该应用程序,一切正常。
那么,有人能告诉我如何用 css 解决 play2 问题吗?
感谢大家,我发现了问题并修复了它。所以,简短的描述:在日志分析之后,我发现在 url 中有一些问题,比如 next path=/assets//stylesheets/style.css,所以,从 url 中删除一个/符号后,一切都开始工作了。
path=/assets//stylesheets/style.css
/
因此,作为结论,本地版本可以使用路径中的附加符号工作和加载资源,/但 heroku 不能。