Reputation: 11469
I am trying to deploy a playframework-based app (play 2). When I run it locally, all is well. When I deploy to heroku, instead of reading the message from the message file, the app just spits out the message name. eg: this code:
@Message("app.title")
results in
app.title
rather than the value in the conf/messages
file. Locally, it works fine.
Note that I'm not internationalizing my site, just using the default messages file in order to separate text from code (and maybe internationalize some day :)
Upvotes: 0
Views: 215
Reputation: 11469
The issue was that I had named my file "Messages", which was fine on Mac OS X (case-preserving but not case-sensitive file system), but not okay on Heroku. I realized this pretty quickly and fixed it, but unfortunately, git did not see the fix. I had to delete, commit, re-add and recommit. I suspect a name-change (not just case-change) would have been adequate as well.
Thanks to James Ward (who really answered this question) for the suggestion.
Upvotes: 2