Open mason-stewart opened 10 years ago
Great idea, unfortunately meta.edn
isn't stored locally, it's constructed on-the-fly and uploaded to s3:
https://github.com/zk/inky/blob/master/src/clj/inky/compile.clj#L91
Off the top of my head, the storage engine would have to be abstracted to work with either s3 or local:
resources/public
directory to be served by the web process.entry/in-s3?
)There's probably some thought that needs to be put into the simplest way to handle this (I don't really have the whole thing in my head right now), but a $HOST env var seems like a good way to handle 2 & 3. Not sure about 1. Perhaps a good name for that would be something like $SKETCH_BASE_URL?
In any case, it's worth asking whether or not this is worth the additional complexity. I think it is, as it would be nice not to be tied to s3.
Thoughts?
I can locally compile gists at the
/:login/:gist-id
url, but the function for that route tries to(slurp (str "http://f.inky.cc/" gist-id "/meta.edn")
. The hostname can easily be replaced with a HOST env var, but I can't see where such meta data is being stored locally. As is, to get around this I would have to have the gist compiled at inky.cc first, but that's pretty inconvenient.