Fork me on GitHub
#datomic
<
2018-07-29
>
henrik16:07:00

What’s the best way to handle static content in an Ion? I have a bunch of schema files that needs to be available internally to the Ion. Should I stick them on S3? What’s the best way to access them from inside the Ion?

euccastro18:07:10

@henrik: why not have them in the classpath? maybe in a resource directory in your deps.edn's :paths?

euccastro18:07:57

then they'll get pushed / deployed along with your code

henrik18:07:59

I tried that, and it didn’t work once it reached AWS, so I assumed that it wasn’t possible. Do you know if there are differences in how paths are resolved locally vs. AWS?

henrik18:07:27

In both cases, I attempted to use a relative path—a folder inside resources

euccastro18:07:43

what function did you use to load them? io/resource?

henrik18:07:37

Manually written path, I’m afraid. I’ll use resource instead and see if it makes a difference.

henrik18:07:17

Oh yeah, that worked much better. Thank you!

euccastro22:07:56

you're welcome, glad to know it worked!