forked from Archives/Athou_commafeed
Creating template
This commit is contained in:
committed by
fabianofranz
parent
14ef5af936
commit
0b46187ac5
279
diy/index.html
Normal file
279
diy/index.html
Normal file
File diff suppressed because one or more lines are too long
14
diy/testrubyserver.rb
Executable file
14
diy/testrubyserver.rb
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env ruby
|
||||
require 'webrick'
|
||||
include WEBrick
|
||||
|
||||
config = {}
|
||||
config.update(:Port => 8080)
|
||||
config.update(:BindAddress => ARGV[0])
|
||||
config.update(:DocumentRoot => ARGV[1])
|
||||
server = HTTPServer.new(config)
|
||||
['INT', 'TERM'].each {|signal|
|
||||
trap(signal) {server.shutdown}
|
||||
}
|
||||
|
||||
server.start
|
||||
Reference in New Issue
Block a user