Fixed bug when serving data from jar file
This commit is contained in:
parent
0e943b0e18
commit
559167bd5b
18
project.clj
18
project.clj
|
@ -56,6 +56,9 @@
|
|||
[lein-codox "0.10.7"]
|
||||
[lein-release "1.0.5"]]
|
||||
|
||||
:deploy-repositories [["releases" :clojars]
|
||||
["snapshots" :clojars]]
|
||||
|
||||
:clean-targets ^{:protect false}
|
||||
[:target-path [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
|
||||
:figwheel
|
||||
|
@ -141,4 +144,17 @@
|
|||
|
||||
}
|
||||
:profiles/dev {}
|
||||
:profiles/test {}})
|
||||
:profiles/test {}}
|
||||
|
||||
;; `lein release` doesn't play nice with `git flow release`. Run `lein release` in the
|
||||
;; `develop` branch, then reset the `master` branch to the release tag.
|
||||
|
||||
:release-tasks [["vcs" "assert-committed"]
|
||||
["clean"]
|
||||
["codox"]
|
||||
["change" "version" "leiningen.release/bump-version" "release"]
|
||||
["vcs" "commit"]
|
||||
["uberjar"]
|
||||
["deploy" "clojars"]
|
||||
["change" "version" "leiningen.release/bump-version"]
|
||||
["vcs" "commit"]])
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
"Return JSON formatted data taken from the CSV file with the name `filename`
|
||||
in the directory `resources/public/data`."
|
||||
[filename]
|
||||
(-> (str "public/data/" filename) io/resource io/file io/reader csv->json))
|
||||
(-> (str "public/data/" filename) io/resource io/reader csv->json))
|
||||
|
||||
(defn get-data
|
||||
"Return JSON formatted data from the source implied by this `request`."
|
||||
|
|
Loading…
Reference in a new issue