-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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.
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.
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.
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.