/* Ruby */ gürü

This commit is contained in:
Astro 2007-11-15 23:03:33 +00:00
parent 96fa011e7f
commit a568d31e24
1 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,8 @@ twistd -n web --path $path --port $port
=Ruby=
==äđëqüäŧë==
<source lang="ruby">
#!/usr/local/bin/ruby
require 'webrick'
@ -79,3 +81,8 @@ s = HTTPServer.new(
trap("INT"){ s.shutdown }
s.start
</source>
==gürü==
<source lang="bash">
ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port=>8080,:DocumentRoot=>"/tmp").start'
</source>