could someone give me a hint, howto serve the current directory from command line with ruby? it would be great, if i can have some system wide configuration (e.g. mime-types) and simply launch it from every directory.
could someone give me a hint, howto serve the current directory from command line
Share
Simplest way possible (thanks Aaron Patterson/n0kada):
Alternate, more complex way:
Even the first command is hard to remember, so I just have this in my
.bashrc:It serves the current directory on port 3000 by default, but you can also specify the port: