Adding this alias to my bash profile had been super useful. alias serve="python -m SimpleHTTPServer 8080"
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Mike is right, SimpleHTTPServer is fine until it's not, likely when doing Polymer. go get github\.com/maruel/serve-dir; serve-dir -port=8000
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
`php -S 0.0.0.0:8000` is even shorter (and you have PHP, in case you need it)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
And in Python 3 it's `python -m http.server`.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@SaraSoueidan It's an npm package, but install it globally. http-server does the same thing.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Ends up a *sh alias on all my machines too as 'quickserv [port]'
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I use 'php -s localhost:8000' from whatever folder or 'http-server <path>' for node.
-
Well I was super slow with my reply. Sorry :)
End of conversation
New conversation -
-
-
my Linux/OSX Python 2/3 x-platform version: https://gist.github.com/WebReflection/3c75d2495a5aa3b12f4f#file-server-md … with a CORS enabled snippet version too https://gist.github.com/WebReflection/3c75d2495a5aa3b12f4f#gistcomment-1902064 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Do you need`python -m`? I just run `simplehttpserver`
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.