diff --git a/project.clj b/project.clj index 2441899..dc47ea6 100644 --- a/project.clj +++ b/project.clj @@ -59,6 +59,7 @@ [lein-cprop "1.0.1"] [lein-less "1.7.5"] [lein-npm "0.6.2"] + [lein-release "1.0.5"] [lein-uberwar "0.2.0"] [migratus-lein "0.4.2"] [org.clojars.punkisdead/lein-cucumber "1.0.5"]] @@ -79,6 +80,18 @@ [simplemde "1.11.2"]] :root "resources/public/js/lib"} + :release-tasks [["vcs" "assert-committed"] + ["change" "version" "leiningen.release/bump-version" "release"] + ["vcs" "commit"] + ;; ["vcs" "tag"] -- not working, problems with secret key + ["clean"] + ["npm" "install"] + ["ring" "uberjar"] + ["docker" "build"] + ["docker" "push"] + ["change" "version" "leiningen.release/bump-version"] + ["vcs" "commit"]] + :uberwar {:handler youyesyet.handler/app :init youyesyet.handler/init diff --git a/src/clj/youyesyet/middleware.clj b/src/clj/youyesyet/middleware.clj index fe581a2..f813f8e 100644 --- a/src/clj/youyesyet/middleware.clj +++ b/src/clj/youyesyet/middleware.clj @@ -20,7 +20,9 @@ ;; (for example when using mock requests), then ;; .getContextPath might not exist (try (.getContextPath ^ServletContext context) - (catch IllegalArgumentException _ context)) + (catch IllegalArgumentException err + (log/warn "Failed to initialise servlet-context: " (.getMessage err)) + context)) ;; if the context is not specified in the request ;; we check if one has been specified in the environment ;; instead