Skip to content

Commit

Permalink
Recent versions of luminus include :main, fixes [IMMUTANT-579]
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrossley3 committed Nov 4, 2015
1 parent 263736c commit 1b17cf9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/guides/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,15 @@ to function to use instead of `-main`:
:main my-app.core/start
```

But what if your project doesn't have a `:main` function? If you
created your app with a popular Ring-based template like [Compojure]
or [Luminus], it won't:
But what if your project doesn't have a `:main` function? Perhaps you
created your app with a popular Ring-based template like [Compojure]:

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 function in your project. You can easily add one to
`src/my_app/handler.clj`:
Instead of a `:main`, 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 function in your project. You can easily add one
to `src/my_app/handler.clj`:

```clojure
(ns my-app.handler
Expand Down

0 comments on commit 1b17cf9

Please sign in to comment.