Fix some problems with the new ring lib
This commit is contained in:
parent
353aeb6907
commit
47356a82c8
2 changed files with 5 additions and 12 deletions
3
dev/user.clj
Normal file
3
dev/user.clj
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
(ns user)
|
||||||
|
|
||||||
|
;; Place some code for the repl here
|
|
@ -12,12 +12,7 @@
|
||||||
(route/resources "/")
|
(route/resources "/")
|
||||||
(route/not-found "Not Found"))
|
(route/not-found "Not Found"))
|
||||||
|
|
||||||
(defn init
|
(defn init []
|
||||||
"init will be called once when
|
|
||||||
app is deployed as a servlet on
|
|
||||||
an app server such as Tomcat
|
|
||||||
put any initialization code here"
|
|
||||||
[]
|
|
||||||
(timbre/set-config!
|
(timbre/set-config!
|
||||||
[:appenders :rotor]
|
[:appenders :rotor]
|
||||||
{:min-level :info
|
{:min-level :info
|
||||||
|
@ -33,10 +28,7 @@
|
||||||
(if-not (schema/initialized?) (schema/create-tables))
|
(if-not (schema/initialized?) (schema/create-tables))
|
||||||
(timbre/info "ldview started successfully"))
|
(timbre/info "ldview started successfully"))
|
||||||
|
|
||||||
(defn destroy
|
(defn destroy []
|
||||||
"destroy will be called when your application
|
|
||||||
shuts down, put any clean up code here"
|
|
||||||
[]
|
|
||||||
(timbre/info "ldview is shutting down..."))
|
(timbre/info "ldview is shutting down..."))
|
||||||
|
|
||||||
(def app (middleware/app-handler
|
(def app (middleware/app-handler
|
||||||
|
@ -50,5 +42,3 @@
|
||||||
;; available formats:
|
;; available formats:
|
||||||
;; :json :json-kw :yaml :yaml-kw :edn :yaml-in-html
|
;; :json :json-kw :yaml :yaml-kw :edn :yaml-in-html
|
||||||
:formats [:json-kw :edn]))
|
:formats [:json-kw :edn]))
|
||||||
|
|
||||||
(def war-handler (middleware/war-handler app))
|
|
||||||
|
|
Loading…
Reference in a new issue