Version 0.2.0-SNAPSHOT

This commit is contained in:
Simon Brooke 2018-07-19 17:59:34 +01:00
parent 2bf43396f0
commit 3b11b678a1
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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