Skip to content

Instantly share code, notes, and snippets.

@cotapon
cotapon / build.rb
Created February 20, 2013 05:01 — forked from deguchi/build.rb
# original https://gist.github.com/715378
# thanks hakobe!
# Macで動作確認。Windowsの場合、spawnを使うとよいらしい。 参考: https://gist.github.com/325036
require 'webrick'
server = WEBrick::HTTPServer.new({
:DocumentRoot => nil,
:BindAddress => '0.0.0.0',
:Port => 9090