So I'd like to switch to port 80 in my development environment, but rails server makes this tough.
rvmsudo bundle exec rails server thin -p 80
works fine, but litters my environment with sass cache and other temporary files, all root-permissioned, which means I pretty much have to do everything as root, which is a Very Bad Thing.
thin start -p 80 -u me -g staff -e development
doesn't work; thin seems to drop permissions before binding the port (?!). Even if it did work, this wouldn't do; rails server
provides much richer logging for development.
To be clear, I'm well aware that binding port 80 requires root. The ideal solution would drop permissions down to a user/group that I specify after binding port 80, as every server in the last 20 years has been able to do. Is this really not possible to do with rails server
? I can't find any documentation on it.
ipfw
, which I've manually used to solve my problem for now. So this is worth a check mark if you post an answer, in my book, if nobody posts a morerails server
centric answer within a day or two. – Coerceipfw
seems to be doing the trick and introduces fewer potential complexities. – Coerce