Deploying the Play 2.0 application on Heroku

Table of contents
Reading Time: 2 minutes

We are working on a project using Play freamework with Scala programming language. Here we’ll discuss about the deployment of the play application on Heroku. This is a very straightforward process. You just have need to follow some simple steps and your application will be on Heroku in minutes.

1. Heroku needs a file named ‘Procfile‘ for each application to be deployed on it. Procfile is a mechanism for declaring what commands are run when your web or worker dynos are run on the Heroku platform. Find more about Procfile here. Create a file Procfile and put it in the root of your project directory.

2. Add the following line to your Procfile that you had just created:

3.Now Initiate the git session for your project and add files to git as

4. Commit the changes for the project to git as:

5. On the command line create a new application using the “cedar” stack:

Celedon Cedar is Heroku’s most recent runtime stack.

6.The application is ready to be deployed to the cloud. push the project files to heroku as:

7. Go to your heroku account -> MyApps and you’ll find a new application that you had just created. Launch the URL and have a look to your running application on heroku. You can also rename your application as well.

Heroku Applications

1 thought on “Deploying the Play 2.0 application on Heroku1 min read

Comments are closed.