Hacker News new | ask | show | jobs
by fouronnes3 1869 days ago
What's a good one that serves gzip assets if they exist? I'm looking for a way to serve a webpack prod build.
3 comments

These are development servers, they are not meant for production builds (many don't handle concurrent requests, memory/performance is probably too poor as well).

Caddy works well and is easy to use and could replace most of these examples, not only for development but for production usage too.

Otherwise go for nginx/apache. Learn the config syntax once, get lifetime worth of value :)

try redbean https://justine.lol/redbean/ see hn thread https://news.ycombinator.com/item?id=26271117 e.g.

    sudo redbean.com -dp80 -L/var/log/redbean.log -P/var/run/redbean.pid -U65534 -G65534 -vvvvmbag
Caddy has it, but I doubt you could invoke the option in a one-liner. Still very easy to setup though.