/* Ruby */ gürü
This commit is contained in:
parent
96fa011e7f
commit
a568d31e24
|
@ -60,6 +60,8 @@ twistd -n web --path $path --port $port
|
||||||
|
|
||||||
=Ruby=
|
=Ruby=
|
||||||
|
|
||||||
|
==äđëqüäŧë==
|
||||||
|
|
||||||
<source lang="ruby">
|
<source lang="ruby">
|
||||||
#!/usr/local/bin/ruby
|
#!/usr/local/bin/ruby
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
|
@ -79,3 +81,8 @@ s = HTTPServer.new(
|
||||||
trap("INT"){ s.shutdown }
|
trap("INT"){ s.shutdown }
|
||||||
s.start
|
s.start
|
||||||
</source>
|
</source>
|
||||||
|
|
||||||
|
==gürü==
|
||||||
|
<source lang="bash">
|
||||||
|
ruby -rwebrick -e 'WEBrick::HTTPServer.new(:Port=>8080,:DocumentRoot=>"/tmp").start'
|
||||||
|
</source>
|
||||||
|
|
Loading…
Reference in New Issue