lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.21k stars 85 forks source link

Does rewrite works on Windows? #58

Closed dereklin closed 7 years ago

dereklin commented 7 years ago

I am using Windows 7 and local-web-server 1.2.7. When I do

ws

The site is running ok.

When I do:

ws --rewrite '/yeah/* -> http://localhost:9000/$1'

I get

The filename, directory name, or volume label syntax is incorrect.

I tried changing the path many times but still got the same error.

75lb commented 7 years ago

on Windows you need to use double-quotes.. I've no idea why, I don't know the platform very well.

$ ws --rewrite "/yeah/* -> http://localhost:9000/$1"
dereklin commented 7 years ago

@75lb Thanks!