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 ...