public
Created

  • Download Gist
bashrc
Shell
1
export PATH=/usr/bin:/bin
env.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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

Dude, indentation.

Ok.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.