configuration - Local static server without trailing slash -
what's simplest way run static server without trailing slashes locally? ideally, i'd use tools come installed latest version of os x.
unfortunately,
python -m simplehttpserver 8000
and
ruby -run -ehttpd . -p8000
both 301 redirect /about
/about/
.
i want opposite.
see more static server one-liners.
note: static site talks rest api uses rack.
unless has better solution, use rack::static
.
true, rack doesn't come installed latest version of os x, need anyway run rest api static site talks to.
see heroku dev center: creating static sites in ruby rack.
please update answer completed code. thanks!
Comments
Post a Comment