Doodle3D-Slicer/three.js-master/utils/servers/ruby_server.sh

4 lines
160 B
Bash
Raw Normal View History

2015-06-12 15:58:26 +02:00
#!/bin/sh
cd `dirname $0`/../../
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 8000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"