Play framework app 'cannot find template' while deployed on heroku Play framework app 'cannot find template' while deployed on heroku heroku heroku

Play framework app 'cannot find template' while deployed on heroku


I had this problem on Heroku, and it was case-insensitivity.

In my controller, I had something like

public static void showUser(Long id) {    ...    render(user);}

but in my views folder I had

app/views/Application/showuser.html

On my Mac, and Windows machine, this is fine, but on Linux machines, including Heroku, the file showUser.html will not be found.


try to troubleshoot using the following items:

  1. did you upload the views folder under app to the Heroku?
  2. do you have case sensitive problems in your file and directory names (say Application/admin.html is different from application/admin.html etc)? When you are in a windows platform this is okay, but when you deloy app to a linux/unix environment, this going to break your app.

BTW, MailUSer looks strange, why not MailUser ?