Doodle3D-Slicer/three.js-master/utils/servers/ruby_server.sh
2017-06-22 13:21:07 +02:00

4 lines
160 B
Bash
Executable File

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