3 ms·
What's a good one that serves gzip assets if they exist? I'm looking for a way to serve a webpack prod build.
by fouronnes3 5y 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.
- Siira 5y agoCaddy has it, but I doubt you could invoke the option in a one-liner. Still very easy to setup though.
- capableweb 5y agoThese 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 :)
- jart 5y agotry redbean https://justine.lol/redbean/ https://justine.lol/redbean/ see hn thread https://news.ycombinator.com/item?id=26271117 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