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 with Dokku

In this recipe, we will use the Docker-based tool, Dokku, to manage our Play 2 web application deployment. Dokku provides a very straightforward deployment interface, quite similar to Heroku's deployment interface and allows developers to quickly deploy Play 2 web apps.

We will have Dokku running and will deploy our Play 2 web application in a Digital Ocean Droplet. We will need a Droplet with at least 2GB of RAM to run our sample webapp. Ensure that you sign up for a Digital Ocean account to follow this recipe:

https://cloud.digitalocean.com/registrations/new

How to do it...

  1. Prepare your deployment droplet by creating a new 2GB RAM Droplet with Dokku v0.3.15 on 14.04 or higher application option pre-installed: ...

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