Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.
vijaykiran edited this page Apr 19, 2012 · 3 revisions

Debian Play module

The Debian Play module allows you to generate Debian packages for your Play framework applications and modules.

Warning The Debian packages generated will need to be customised for your needs. By default everything is setup to depend on debianised Play packages that you will need to build. Let us know if you have anything that needs fixing.

Usage

Download and install the Debian Play module inside the modules/debian folder of your Play framework installation (or anywhere if you're using Play 1.0) and follow the following instructions: Debianise an application In your application folder, run the following:

For Play 1.1:
play deb:debianize --with=debian

For Play 1.0:

MODULES=/path/to/debian/module play deb:debianize

And answer the questions. Once done, it will generate a folder called debian which will contain all you need to make debian packages with your application. You may want to customise the files located in there and take a look at those it placed in conf/*.ex to see if you want to include this configuration in your application. Now just run this:

fakeroot ./debian/rules binary

And you will get your application deb generated.

Debianise a clustered application

This is useful if you want to have two versions of your application running all the time, and use a load-balancer or fallback proxy, if you want to upgrade your application with no downtime for example. This will generate two debs, with each a copy of the application and configuration. In your application folder, run the following: For Play 1.1:

play deb:debianize-cluster --with=debian

For Play 1.0:

MODULES=/path/to/debian/module play deb:debianize-cluster

And answer the questions. Once done, it will generate a folder called debian which will contain all you need to make debian packages with your application. You may want to customise the files located in there and take a look at those it placed in conf/*.ex to see if you want to include this configuration in your application. Now just run this:

fakeroot ./debian/rules binary

And you will get your application debs generated.

Debianise a module

In your module folder, run the following: For Play 1.1:

play deb:debianize-module --with=debian

For Play 1.0:

MODULES=/path/to/debian/module play deb:debianize-module

And answer the questions. Once done, it will generate a folder called debian which will contain all you need to make debian packages with your application. You may want to customise the files located in there. Now just run this:

fakeroot ./debian/rules binary

And you will get your module deb generated.

Clone this wiki locally