Scala Play 2.1.0 - 资产没有出现在Heroku上? [英] Scala Play 2.1.0 - Assets not appearing on Heroku?
本文介绍了Scala Play 2.1.0 - 资产没有出现在Heroku上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
代码是
我的应用在开发中运行良好(图片显示),但是当部署到Heroku时,它们神秘地消失。 b $ b
The code is
<img src="@routes.Assets.at("images/myImage.png")"" />
是Heroku搞乱了这个还是我错过了什么?
Is Heroku messing this up or am I missing something?
推荐答案
确保你的项目的 public
目录位于你的git仓库中。
Make sure your project's public
directory is in your git repo.
这篇关于Scala Play 2.1.0 - 资产没有出现在Heroku上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文