3

My app works fine in development (images show), but when deploying to Heroku they mysteriously disappear.

The code is

<img src="@routes.Assets.at("images/myImage.png")"" />

Is Heroku messing this up or am I missing something?

Nick Cooper
  • 750
  • 1
  • 6
  • 7

1 Answers1

3

Make sure your project's public directory is in your git repo.

James Ward
  • 29,283
  • 9
  • 49
  • 85
  • This did it, I was apparently forgetting to 'git add -A' – Nick Cooper Apr 07 '13 at 14:34
  • I have the same problem and my public directory is added, as it can find the css files and images. But the fonts I try to use via @font-face cannot be loaded. Any hints? – dabuki May 25 '13 at 14:45
  • Hmm, the font name in the css are case sensitive. Strange that on my Mac this didn't matter and on the Heroku server it did. – dabuki May 25 '13 at 16:13
  • You file system on your Mac is probably not case sensitive but Linux is always case sensitive. – James Ward May 25 '13 at 18:06
  • One more comment. I would also check your .gitignore. the default one generated by play had dist/ listed which screwed up with my bower installed artifacts. Thanks for the fix though. :) – csgeek Jan 19 '15 at 18:45