I think you might need to use getAbsolutePath() instead. Can you do a "heroku run bash" and verify the location of the file?

Perhaps this is a case sensitivity issue?

-James


On 12/07/2011 12:24 PM, Lukasz Piliszczuk wrote:
Yes I can see this when I push to keroku repository app :
"19:14:21,373 INFO ~ Starting /tmp/build_2z66kru4s9..."
So the app must be located somewhere in /tmp/xxx ?

But even with your solution it's not working.
I've tried the current path :
- "Play.getFile("./pdf/fonts/ARIALN.TTF").getCanonicalPath()"
-
"play.vfs.VirtualFile.fromRelativePath("/pdf/fonts/ARIALN.TTF").getRealFile().getCanonicalPath()"

My file is located under the path from the project root :
"/pdf/fonts/ARIALN.TTF".

And I still have the same error : "java.io.IOException:
/app/pdf/fonts/ARIALN.TTF not found as file or resource."
Of course both methods works on my local computer.

Thanks your time,
Lukas

--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/heroku/-/LOKQaZvmnPoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to