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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access