Created
April 1, 2014 10:40
-
-
Save higuma/9911652 to your computer and use it in GitHub Desktop.
開発用ローカルサーバを立ち上げる方法 ref: http://qiita.com/higuma/items/b23ca9d96dac49999ab9
This file contains hidden or 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
run Rack::Directory.new '.' |
This file contains hidden or 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
$ python -m SimpleHTTPServer [ポート番号(デフォルトは8000)] |
This file contains hidden or 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
$ python3 -m http.server [ポート番号(デフォルトは8000)] |
This file contains hidden or 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
$ ruby -run -e httpd . -p 8000 |
This file contains hidden or 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
$ [sudo] gem install rack |
This file contains hidden or 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
$ rackup | |
[2014-04-01 14:18:53] INFO WEBrick 1.3.1 | |
[2014-04-01 14:18:53] INFO ruby 1.9.3 (2013-06-27) [i686-linux] | |
[2014-04-01 14:18:53] INFO WEBrick::HTTPServer#start: pid=5814 port=9292 |
This file contains hidden or 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
$ rackup | |
[2014-04-01 14:18:53] INFO WEBrick 1.3.1 | |
[2014-04-01 14:18:53] INFO ruby 1.9.3 (2013-06-27) [i686-linux] | |
[2014-04-01 14:18:53] INFO WEBrick::HTTPServer#start: pid=5814 port=9292 |
This file contains hidden or 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
$ php -S localhost:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment