Serve a directory with Ruby web server
In case you'll need to serve a directory containing an index.html
file (an AngularJS application in my case) on a web server, you can run default Ruby one that is WEBrick
using
ruby -run -e httpd . -p 8000
Written by Dzianis Dashkevich
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#