Websocket chat-room and ZenTasks sample applications on Heroku

184 views
Skip to first unread message

Ali Al-Ogaili

unread,
Apr 24, 2012, 7:44:43 PM4/24/12
to play-fr...@googlegroups.com
Hello all,

I am new to the play framework ( I am using play 2.0 Java) and I decided to try to deploy the sample applications (the Zentasks and Websocket chat-room) on Heroku in order to test the infrastructure.  

The Zentasks threw an Application Error, and the following exception was shown on the Heroku logs:
"PlayException: Database "default" needs evaluation! [An SQL script need to be run on your database.". Locally, you would hit the run script and just have the database initialized, but there is not such option on Heroku. 

The websocket chat program worked fine locally; however, when deployed at Heroku, it ran but there was no char room. 

I have attached snapshot illustrating both problems. I wonder if anyone managed to run those samples successfully on Heroku?

Cheers
ChatRoomError.png
ZenTasksError.png

Nicolas Leroux - committer

unread,
Apr 25, 2012, 8:36:28 AM4/25/12
to play-fr...@googlegroups.com
Heroku does not support (yet) websocket so the chat room app won't work. You need to configure you Heroku shared DB for the Zentask to work. See https://devcenter.heroku.com/articles/database-driven-play-apps for example.

Nicolas
Reply all
Reply to author
Forward
0 new messages