Skip to content

Instantly share code, notes, and snippets.

@higuma
Created April 1, 2014 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higuma/9911652 to your computer and use it in GitHub Desktop.
Save higuma/9911652 to your computer and use it in GitHub Desktop.
開発用ローカルサーバを立ち上げる方法 ref: http://qiita.com/higuma/items/b23ca9d96dac49999ab9
run Rack::Directory.new '.'
$ python -m SimpleHTTPServer [ポート番号(デフォルトは8000)]
$ python3 -m http.server [ポート番号(デフォルトは8000)]
$ ruby -run -e httpd . -p 8000
$ [sudo] gem install rack
$ 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
$ 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
$ php -S localhost:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment