Play Framework

Play Framework 2 & HTML5 on Heroku at Philly ETE and Devoxx Paris

Over the next few weeks I’ll be doing a few presentations about Java, Scala, Play Framework 2, HTML5, and Heroku:

Tutorial: Play Framework 2 with Scala, Anorm, JSON, CoffeeScript, jQuery & Heroku

Play Framework 2 RC2 has been released and it is quickly becoming a mature and productive way to build modern web apps. Lets walk through building a quick app with Play 2, Scala, Anorm, JSON, CoffeeScript, and jQuery. Once the app works locally we will deploy it on the cloud with Heroku. (Note: This is the Play 2 + Scala version of my Play 1 + Java tutorial.) You can grab the completed source from GitHub.

Heroku at Jfokus and Spring I/O 2012

In just a few weeks I’ll be over in Europe presenting about Heroku at two fantastic Java conferences. First up is Jfokus in Stockholm! On February 14 at 20:00 I will be leading a Cloud Conversations BoF. Then on February 15 at 11:10 I will be speaking about how to “git push” Java & Play! Apps to the Cloud. This will be my first time speaking at Jfokus and I’m really excited because I’ve heard such great things.

Try the New Play Framework Heroku Plugin

I just published a [Heroku Plugin for Play Framework][1]. Right now it just deploys a Play app to Heroku. Try it out:

  1. [Signup for a Heroku account][2]
  2. Install the Heroku plugin locally: ```bash $ play install heroku

  3. Create a Play (1.2.3 or 1.2.4) app: ```bash
$ play new foo --with heroku
Or if you already have an existing Play app, add the follow line to the _conf/dependencies.yml_ file and then run "play deps -sync":

```yaml
  • play -> heroku 0.2

  4. Deploy the app: ```bash
$ play heroku:deploy foo
You should see something like:

```bash

~ _ _ ~ _ __ | | __ _ _ | | ~ | ‘ | |/ ’ | || || ~ | /||_|__ () ~ || |__/
~ ~ play! 1.2.4, http://www.playframework.org ~ ~ Deploying app to Heroku Listening for transport dt_socket at address: 8000 Project directory: /home/jamesw/Desktop/foo Read Heroku API key from /home/jamesw/.heroku/credentials Created new ssh key pair (heroku_rsa) in: /home/jamesw/.ssh Added the heroku_rsa.pub ssh public key to your Heroku account Created a .git directory for your project Added and committed all of the local changes to the git repo Created app: cold-night-1511 http://cold-night-1511.herokuapp.com/ Added git remote: git@heroku.com:cold-night-1511.git Deploying application via git push Application deployed ~ App Deployed

Just Released the S3Blobs Play Framework Module for Amazon S3

I’ve just posted the first release of the S3Blobs Play Framework Module. This module makes it easy to upload and download files from Amazon S3 from a JPA entity in a Play Framework Java application. This module is based on a POC that I did a few months ago, the JPA stuff from Tim Kral, and the modularization done by Roderik van der Veer. For more details on how to use the module check out the documentation, my tutorial (slightly out of date now), and the source code. This makes it really easy to save file uploads to an external system when running Play! apps on Heroku. Let me know if you have any questions. Thanks!