Created
December 1, 2016 13:06
-
-
Save tomothumb/304b73604b8c95c0b5c851a9b7352bcc to your computer and use it in GitHub Desktop.
簡易WebServer CLIワンライナー。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 127.0.0.1:8000 でアクセスできるようにした例。 | |
#PHP | |
$ php -S 127.0.0.1:8000 | |
#Python | |
$ python -m SimpleHTTPServer 8000 | |
#Ruby | |
#重たい気がする... | |
$ ruby -run -e httpd . -p 8000 | |
#Node | |
#[http-server]を利用するので、globalにインストールしておく | |
$ npm install -g http-server | |
$ http-server -p 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment