Creating template

This commit is contained in:
Template builder
2014-09-15 11:34:44 -04:00
committed by fabianofranz
parent 14ef5af936
commit 0b46187ac5
9 changed files with 330 additions and 2 deletions

279
diy/index.html Normal file

File diff suppressed because one or more lines are too long

14
diy/testrubyserver.rb Executable file
View 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