Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ruby already has the ability to spin up a quick webserver for the current directory. This is supported through the un file in Ruby's stdlib: http://ruby-doc.org/stdlib-2.0.0/libdoc/un/rdoc/Object.html.

    ruby -run -e httpd -- --port=8080 .


Say no more!.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: