O'Reilly logo

Web Development with Clojure by Dmitri Sotnikov

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

Packaging Applications

Our application is now ready to be packaged and deployed. In this section we’ll discuss how to accomplish this using Leiningen. As you’ll see, this is a straightforward process. However, you need to be aware of a few things, depending on how you wish to run the application in production.

Up to this point we’ve been running our application in the REPL or by calling lein ring server to start up Jetty in development mode. In this mode the server watches the files for changes and reloads them as needed. This obviously causes a significant performance hit.

There are two ways to run Clojure web applications in production. Let’s look at the benefits and drawbacks of these approaches.

The first approach is to create a standalone ...

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