heroku

leontalbot 2017-09-06T20:10:52.000516Z

I got path error when I read file in production on Heroku

leontalbot 2017-09-06T20:11:13.000259Z

I use http://clojure.java.io/file but the path seems correct only locally.

leontalbot 2017-09-06T20:11:30.000369Z

Any ideas what to do to make it work on heroku?

leontalbot 2017-09-06T20:12:07.000242Z

Thanks for your help!

bostonaholic 2017-09-06T23:55:17.000033Z

@leontalbot use <http://clojure.java.io/resource|clojure.java.io/resource> and have the file in ./resources

bostonaholic 2017-09-06T23:55:57.000201Z

e.g. (<http://clojure.java.io/resource|clojure.java.io/resource> "foo.txt") will give you the file that lives in ./resources/foo.txt