javascript - Is there a simple html-webserver for mac? -
sometimes when front-end development, use mamp web-server don't have deal cors-errors. since upgraded mavericks mamp won't work more , pretty heavy. there simpler or more lightweight built in or installed?
depending on how simple it:
python 2:
python -m simplehttpserver 8000
https://docs.python.org/2/library/simplehttpserver.html
python 3:
python3 -m http.server
Comments
Post a Comment