Skip to content

Commit

Permalink
Minor install guide edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias committed Feb 10, 2015
1 parent cfa2789 commit 5d02a82
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions docs/guides/installation.md
Expand Up @@ -11,8 +11,7 @@ for [The Deuce].

## project.clj

You need two things in your `project.clj`, as you would for any other
Clojure library:
You need two things in your `project.clj`:

* Immutant lib[s] in your `:dependencies`
* a `:main` function
Expand Down Expand Up @@ -65,9 +64,7 @@ is where you should invoke the Immutant services. For example:
{:status 200
:body "Hello world!"})
(defn -main
"I don't do a whole lot ... yet."
[& args]
(defn -main [& args]
(web/run app))
```
Expand All @@ -76,7 +73,7 @@ created your app with a popular Ring-based template like [Compojure]
or [Luminus], it won't:
lein new compojure my-app
Instead, you'll have a `:ring` map with a `:handler` called
`my-app.handler/app`. So you'll need to manually add a `:main` entry
referencing a namespace in your project with a `-main` function. You
Expand All @@ -87,11 +84,10 @@ can easily add one to `src/my_app/handler.clj`:
...
(:require [immutant.web :as web])
... )
(def app ... )
(defn -main
[& args]
(defn -main [& args]
(web/run app))
```
Expand Down

0 comments on commit 5d02a82

Please sign in to comment.