Skip to content

Instantly share code, notes, and snippets.

@nightpool
Created March 13, 2015 21:45
Show Gist options
  • Save nightpool/723349baa96fc14280f9 to your computer and use it in GitHub Desktop.
Save nightpool/723349baa96fc14280f9 to your computer and use it in GitHub Desktop.
sinatra template
#!/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