Re: Serving files from outside a ring uberjar

2015-02-10 Thread Gary Verhaegen
If you're using Compojure, you can use compjure.route/files for that (as opposed to compojure.route/resources which looks inside the jar). As Moritz said, you still have to be a bit wary about the file path, as it will be relative to the current directory of the JVM, not relative to the JAR file lo

Re: Serving files from outside a ring uberjar

2015-02-10 Thread Moritz Ulrich
See https://github.com/ring-clojure/ring/wiki/Static-Resources You should be able to pass '.' signifying the directory your application was started in (that might NOT be the same place as the jar). viper110110 writes: > I would like to be able to serve up files from a folder after the jar has

Serving files from outside a ring uberjar

2015-02-10 Thread viper110110
I would like to be able to serve up files from a folder after the jar has been built. Ideally I could take a parameter in to the jar with the target directory, but I could also settle for putting the jar in the directory with the files or hardcoding a target directory near the jar. This is so t