O'Reilly logo

Play Framework Cookbook - Second Edition by Giancarlo Inductivo, Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying a Play application on Heroku

In this recipe, we will deploy a Play webapp on Heroku, specifically, the Heroku Cedar stack that supports the Play Framework. Deploying on Heroku requires some knowledge in Git, the popular source control management software.

How to do it...

  1. First, sign up for a Heroku account by visiting the following link:

    https://signup.heroku.com/

  2. Install the Heroku CLI tools (more information at https://devcenter.heroku.com/articles/heroku-command). Once installed, you should now be able to login to Heroku using the CLI tools as follows:
        $ heroku login
        Enter your Heroku credentials.
        Email: <YOUR_HEROKU_USER>
        Password (typing will be hidden):
        Authentication successful.
    
  3. Create our Play webapp using the activator template, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required