diff --git a/dev/user.clj b/dev/user.clj new file mode 100644 index 0000000..cb43b0b --- /dev/null +++ b/dev/user.clj @@ -0,0 +1,3 @@ +(ns user) + +;; Place some code for the repl here diff --git a/src/ldview/handler.clj b/src/ldview/handler.clj index 137c414..948ad15 100644 --- a/src/ldview/handler.clj +++ b/src/ldview/handler.clj @@ -12,12 +12,7 @@ (route/resources "/") (route/not-found "Not Found")) -(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" - [] +(defn init [] (timbre/set-config! [:appenders :rotor] {:min-level :info @@ -33,10 +28,7 @@ (if-not (schema/initialized?) (schema/create-tables)) (timbre/info "ldview started successfully")) -(defn destroy - "destroy will be called when your application - shuts down, put any clean up code here" - [] +(defn destroy [] (timbre/info "ldview is shutting down...")) (def app (middleware/app-handler @@ -50,5 +42,3 @@ ;; available formats: ;; :json :json-kw :yaml :yaml-kw :edn :yaml-in-html :formats [:json-kw :edn])) - -(def war-handler (middleware/war-handler app))