Using Play Framework 2 in production

Even though Play Framework 2 is a young framework, we found it to be quite stable for production use. Still, here are some points you may want to consider when working on a serious web project using Play 2.2.

This is a series of blog posts touching different aspects of web development and deployment. Here’s the list of topics:

1.) HTTPS support using Nginx

If you provide some sort of user login on your page, you’ll probably want to use HTTPS/SSL. This is a how-to for using Play with an nginx reverse proxy.

2.) Database access: Integrating Slick 2.0 with Play Evolutions

If you’re using a relational database such as MySQL, you’re probably also using Play’s Evolutions Plugin for database migrations. This article shows how to integrate the new Slick 2.0 code generator with the Play Framework so that code for querying your tables is automatically generated.

3.) Logging (coming soon)

By default, there will be only one log file created by Play, this may not be what you want on your production server. How-to coming soon.

4.) Developing with Play: CSS/less compilation (coming soon)

If you have lots of stylesheets, or when using Twitter Bootstrap, the built in less compiler can become annoyingly slow during development. Thankfully there is an easy workaround using the faster lessc compiler. How-to coming soon.

5.) Developing with Play: Javascript reverse routes (coming soon)

Play can automatically generate javascript reverse routes which can be used in your javascript front-end. In production, you will probably want to minify and compile your javascript to one big file for performance reasons. How-to coming soon.

 

This entry was posted in Play framework, Slick and tagged , , , , , . Bookmark the permalink.
  • Felipe Djinn

    nice man!!!

  • Bachi

    Can’t wait for the “coming soon’s :)

  • Facundo Rossi

    I will good to see the coming soon’s. But would be better to have a review of the items 1 year leter 😉