Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
add new loggregator simple app
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Jackson <ajackson@pivotallabs.com>
  • Loading branch information
Nick Wade committed Sep 26, 2013
1 parent 833e0a5 commit 4968ddf
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sinatra/loggregator/Gemfile
@@ -0,0 +1,5 @@
source "http://rubygems.org"

ruby '1.9.3'

gem "sinatra"
17 changes: 17 additions & 0 deletions sinatra/loggregator/Gemfile.lock
@@ -0,0 +1,17 @@
GEM
remote: http://rubygems.org/
specs:
rack (1.5.1)
rack-protection (1.3.2)
rack
sinatra (1.3.4)
rack (~> 1.4)
rack-protection (~> 1.3)
tilt (~> 1.3, >= 1.3.3)
tilt (1.3.3)

PLATFORMS
ruby

DEPENDENCIES
sinatra
2 changes: 2 additions & 0 deletions sinatra/loggregator/config.ru
@@ -0,0 +1,2 @@
require "./hello"
run Sinatra::Application
12 changes: 12 additions & 0 deletions sinatra/loggregator/hello.rb
@@ -0,0 +1,12 @@
require 'rubygems'
require 'sinatra'
STDOUT.sync = true

get '/' do
host = ENV['VCAP_APP_HOST']
port = ENV['VCAP_APP_PORT']
"<h1>Hello from VCAP! via: #{host}:#{port}</h1>"
STDOUT.puts("Hello on STDOUT")
STDERR.puts("Hello on STDERR")
end

7 changes: 7 additions & 0 deletions sinatra/loggregator/manifest.yml
@@ -0,0 +1,7 @@
---
applications:
- name: loggregator
memory: 128M
instances: 1
host: loggregator
path: .
Binary file added sinatra/loggregator/vendor/cache/rack-1.5.1.gem
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sinatra/loggregator/vendor/cache/tilt-1.3.3.gem
Binary file not shown.

0 comments on commit 4968ddf

Please sign in to comment.