Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.234 kb
require 'rubygems'
require 'sinatra'
get '/' do
host = ENV['VCAP_APP_HOST']
port = ENV['VCAP_APP_PORT']
"<h1>Hello from VCAP! via: #{host}:#{port}</h1>"
end
get '/crash/:id' do
ps = "kill -9 #{params[:id]}"
Kernel.`ps
end
Jump to Line
Something went wrong with that request. Please try again.