Created
March 13, 2015 21:45
-
-
Save nightpool/723349baa96fc14280f9 to your computer and use it in GitHub Desktop.
sinatra template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/ruby/bin/ruby | |
ENV['HOME'] = "/home/USER" | |
rb_log = File.open('../cgi.log', 'a') | |
STDERR.reopen rb_log | |
STDERR.puts ENV.inspect | |
require 'rubygems' | |
require 'rack' | |
require 'sinatra' | |
get '' do | |
"Welcome to the show!" | |
end | |
Rack::Handler::CGI.run(Sinatra::Application) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment