bellycard/napa

Serving static files

Opened this issue · 4 comments

Do we have a preferred manner for serving static files? Should we have something like this built in: https://github.com/alexmamonchik/napa-skeleton/blob/master/lib/middleware/static_files.rb

shaqq commented

usually from S3

I'm playing with napa on a side project (on an app that will have very little load), and I plan on just serving a single page app from the /public folder. I was thinking we may want to support some wrapper around Rack::Static just to make this easier for others using napa.

@shaqq, do you think it's worth including this in napa?

I like this idea. Would be nice for SPA that have a Napa backend.

shaqq commented

Hm. Yeah. I wonder how Napa would best fit in the world of developing SPA's. At Belly we use S3 to serve basic assets. So, I don't have a better answer than "Rails, shrug?"

I suppose I'm indifferent on adding this to Napa, yet knowing that there's most likely a larger architectural decision at play.