Skip to content

Instantly share code, notes, and snippets.

@timfel
Created February 22, 2012 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timfel/1886224 to your computer and use it in GitHub Desktop.
Save timfel/1886224 to your computer and use it in GitHub Desktop.
export PATH=/usr/bin:/bin
require 'rubygems'
require 'sinatra'
get '/' do
host = ENV['VMC_APP_HOST']
port = ENV['VMC_APP_PORT']
"<h1>XXXXX Hello from the Cloud! via: #{host}:#{port}</h1>"
end
get '/env' do
res = ''
ENV.each do |k, v|
res << "#{k}: #{v}<br/>"
end
res
end
@rkh
Copy link

rkh commented Feb 23, 2012

Dude, indentation.

Ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment