Project

serve_dir

0.0
No commit activity in last 3 years
No release in over 3 years
Start local webserver on a directory (Useful for previewing static web pages)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 2.3.0
~> 1.5
~> 2
 Project Readme

serve_dir

Start local http server that serves contents of the given directory.

Useful for previewing static web sites with Ajax.

Requirements

Ruby 2.0 (may work with older ruby)

Install

$ gem i serve_dir

Usage

$ serve_dir DIR [options]

Options:

  • -p, --port=PORT : http port (default: 8181)
  • --path=PATH : http path to open with browser (default: '/')
    
  • -O, --no-open : don't open browser (default: open browser automatically)
  • -I, --rack-index : don't complement 'index.html' on startup
  • -h, --help : show help

License

MIT

Contact

https://github.com/yhara/serve_dir

Yutaka HARA (yhara)

twitter: @yhara_en