/* Ruby */ gürü
This commit is contained in:
parent
96fa011e7f
commit
a568d31e24
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue